对网站的赏析,怎么让网站快速收录,重庆网站备案系统,seo社区目录
1、关闭防火墙
2、安装gitlab
3、修改配置
4、查看版本
GitLab终端常用命令
5、访问 1、关闭防火墙
firewall-cmd --state 检查防火墙状态
systemctl stop firewalld.service 停止防火墙 2、安装gitlab
xftp中导入安装包
[rootgitlab ~]#mkdir -p /service/tool…目录
1、关闭防火墙
2、安装gitlab
3、修改配置
4、查看版本
GitLab终端常用命令
5、访问 1、关闭防火墙
firewall-cmd --state 检查防火墙状态
systemctl stop firewalld.service 停止防火墙 2、安装gitlab
xftp中导入安装包
[rootgitlab ~]#mkdir -p /service/tools
[rootgitlab ~]# cd/service/tools/
[rootgitlabtools]# yum localinstall -y gitlab-ce-10.8.4-ce.0.el7.x86_64.rpm #安装下载好的rpm包
或者[rootgitlab ~]# rpm -ivh https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-10.8.4-ce.0.el7.x86_64.rpm #执行rpm -ivh 在线安装
安装成功 3、修改配置
vim /etc/gitlab/gitlab.rb修改配置为自己的ip
unicorn[port]8101 [rootgitlabtools]# gitlab-ctl reconfigure #重新加载配置 4、查看版本
[rootgitlab tools]# cat /opt/gitlab/embedded/service/gitlab-rails/VERSION
10.8.4 #查看版本
或
[rootgitlab tools]# rpm -qa gitlab-ce
gitlab-ce-10.8.4-ce.0.el7.x86_64 #查看版本 GitLab终端常用命令
gitlab-ctl start #启动所有 gitlab 组件
gitlab-ctl stop #停止所有 gitlab 组件
gitlab-ctl restart #重启所有 gitlab 组件
gitlab-ctl status #查看服务状态
gitlab-ctl reconfigure #启动服务
vim /etc/gitlab/gitlab.rb #修改默认的配置文件
gitlab-rake gitlab:check SANITIZEtrue --trace #检查gitlab
gitlab-ctl tail #查看日志 5、访问
第一次进入需要输入服务器的端口号加上反斜杠
设置初始密码 进行登录
默认用户名为root 登录成功后就可以使用gitlab使用方法与git差不多