GitLab服務器IP地址設置
首先說明一下,我Linux虛擬機的IP地址是192.168.142.134.
1、在GitLab上新建一個項目test_gitlab,剛開始倉庫地址是http://localhost/yulei/test_gitlab.git .
vi /var/opt/gitlab/gitlab-rails/etc/gitlab.yml
修改gitlab下host值為實際的域名或服務器IP地址即可,保存退出
gitlab-ctl restart
最后刷新瀏覽器,地址地址變成http://192.168.142.134/yulei/test_gitlab.git
Redis 開遠程
yum -y install redis
vi /etc/redis.conf
# bind 127.0.0.1
protected-mode no
daemonize yes
requirepass PWDPWDPWD
systemctl start redis-server