yum -y install policycoreutils openssh-server openssh-clients postfix
postfix check
systemctl enable postfix
systemctl start postfix
fatal: parameter inet_interfaces: no local interface found for ::1
/etc/postfix/main.cf
文件中 inet_interfaces = localhost
为 inet_interfaces = all
libmysqlclient.so.18: cannot open shared object file: No such file or directory
libmysqlclient.so.18
,再使用软连接到/usr/lib64
路径下:ln -s /usr/local/mysql/lib/libmysqlclient.so.18 /usr/lib64
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-11.3.4-ce.0.el7.x86_64.rpm
rpm -ivh gitlab-ce-11.3.4-ce.0.el7.x86_64.rpm
[root@localhost ~] wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-11.3.4-ce.0.el7.x86_64.rpm
......
[root@localhost ~] rpm -ivh gitlab-ce-11.3.4-ce.0.el7.x86_64.rpm
警告:gitlab-ce-11.3.4-ce.0.el7.x86_64.rpm: 头V4 RSA/SHA1 Signature, 密钥 ID f27eab47: NOKEY
准备中... ################################# [100%]
正在升级/安装...
1:gitlab-ce-11.3.4-ce.0.el7 ################################# [100%]
It looks like GitLab has not been configured yet; skipping the upgrade script.
*. *.
*** ***
***** *****
.****** *******
******** ********
,,,,,,,,,***********,,,,,,,,,
,,,,,,,,,,,*********,,,,,,,,,,,
.,,,,,,,,,,,*******,,,,,,,,,,,,
,,,,,,,,,*****,,,,,,,,,.
,,,,,,,****,,,,,,
.,,,***,,,,
,*,.
_______ __ __ __
/ ____(_) /_/ / ____ _/ /_
/ / __/ / __/ / / __ `/ __ \
/ /_/ / / /_/ /___/ /_/ / /_/ /
\____/_/\__/_____/\__,_/_.___/
Thank you for installing GitLab!
GitLab was unable to detect a valid hostname for your instance.
Please configure a URL for your GitLab instance by setting `external_url`
configuration in /etc/gitlab/gitlab.rb file.
Then, you can start your GitLab instance by running the following command:
sudo gitlab-ctl reconfigure
For a comprehensive list of configuration options please see the Omnibus GitLab readme
https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md
修改配置文件 gitlab.rb
中的 external_url
为服务器IP和端口号vim /etc/gitlab/gitlab.rb
## GitLab URL
##! URL on which GitLab will be reachable.
##! For more details on configuring external_url see:
##! https://docs.gitlab.com/omnibus/settings/configuration.html#configuring-the-external-url-for-gitlab
# external_url 'http://gitlab.example.com'
external_url 'http://39.100.2.249' // 访问url
修改完 gitlab.rb
后,重置并启动GitLabgitlab-ctl reconfigure
gitlab-ctl restart
[root@localhost ~] gitlab-ctl restart
ok: run: alertmanager: (pid 6459) 0s
ok: run: gitaly: (pid 6470) 0s
ok: run: gitlab-monitor: (pid 6494) 1s
ok: run: gitlab-workhorse: (pid 6499) 0s
ok: run: logrotate: (pid 6507) 0s
ok: run: nginx: (pid 6517) 1s
ok: run: node-exporter: (pid 6597) 0s
ok: run: postgres-exporter: (pid 6599) 0s
ok: run: postgresql: (pid 6620) 0s
ok: run: prometheus: (pid 6628) 0s
ok: run: redis: (pid 6640) 1s
ok: run: redis-exporter: (pid 6644) 0s
ok: run: sidekiq: (pid 6651) 0s
ok: run: unicorn: (pid 6665) 0s
[root@localhost ~]
ok