[root@GitLab assets]# cat /etc/gitlab/gitlab.rb # Change the external_url to the address your users will type in their browser #external_url 'http://gitlab.example.com' external_url 'http://192.168.1.103' 把或名改成IP [root@GitLab assets]# gitlab-ctl reco
bind-address = 127.0.0.1 => bind-address= 136.129.20.168 IP要这么改 这么改远程连不上,那么需要把这行整行注释掉,重启MYSQL,telnet 136.129.20.168 3306,提示1130 is not allowed to connect to this MySQL server 那么需要在ubuntu上进去 mysql sudo mysql -u root -p 提示输入密码 然后 mysql>mysql>use
ubuntu设置静态IP地址后,上不了网 文章中也提到,如果是在/etc/resolv.conf添加DNS,由于Ubuntu 有一个 resolvconf 服务,如果重启它,那么 /etc/resolv.conf 的内容会被修改成默认的样子,文件里也有提示文字:“DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN”,所以不能直接修改 /etc/resolv.conf. 还有一点要注意的就是,/etc/resolv.c