笔记:gitlab-ce 基本安装(1)
来源:互联网 发布:八皇后问题最简单算法 编辑:程序博客网 时间:2024/06/05 11:23
笔记一
以 ( 阿里云 ) centos为例
[toc]
1、准备工作
sudo yum install curl policycoreutils openssh-server openssh-clients
2、配置系统服务
sudo systemctl enable sshdsudo systemctl start sshdsudo yum install postfixsudo systemctl enable postfixsudo systemctl start postfix
报错
(1) 报错如下:
Job for postfix.service failed. See 'systemctl status postfix.service' and 'journalctl -xn' for details.
运行 journalctl -xn
fatal: parameter inet_interfaces: no local interface found for ::1
解决方案:
打开postfix的配置文件 vim /etc/postfix/main.cf
发现116行左右的配置为:
inet_interfaces = localhostinet_protocols = all
改成以下内容并保存:
inet_interfaces = localhost # 只能接受来自本机的邮件inet_protocols = ipv4 # 拒绝ipv6的本机地址::1
再次执行 sudo systemctl start postfix
(2) 报错如下:
FirewallD is not running
解决方案:
centos7的防火墙废弃了 iptables,默认采用 firewall,把 firewall 弄明白,开启就好(即使关闭也有问题)。
3、傻瓜式安装
(1) 下载gitlab-ce安装包
清华镜像:https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/
cd /usr/local/src && wget -c https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-9.4.3-ce.0.el7.x86_64.rpm
我一般习惯放在src目录下,服务器是阿里云centos,所以选【yum】,7.3版本,所以选【el7】
(2) 安装
rpm -i gitlab-ce-9.4.3-ce.0.el7.x86_64.rpm
4、配置
vim /etc/gitlab/gitlab.rb
修改:
## ip 或 域名都可以external_url 'http://xxx.xxx.xxx.xxx'## 配置SMTP邮件配置,163邮箱gitlab_rails['smtp_enable'] = truegitlab_rails['smtp_address'] = "smtp.163.com"gitlab_rails['smtp_port'] = 25 gitlab_rails['smtp_user_name'] = "发件箱@163.com"gitlab_rails['smtp_password'] = "发件箱账号"gitlab_rails['smtp_domain'] = "163.com"gitlab_rails['smtp_authentication'] =logingitlab_rails['smtp_enable_starttls_auto'] = truegitlab_rails['gitlab_email_from'] = "发件箱@163.com"user["git_user_email"] = "发件箱@163.com"
5、基本操作
GitLab启动/停止
sudo gitlab-ctl startsudo gitlab-ctl stop
查看ngnix服务器日志
/var/opt/gitlab/nginx/logs/
查看gitlab-shell日志
/var/log/gitlab/gitlab-shell/gitlab-shell.log
6、卸载
## 一、停止gitlabsudo gitlab-ctl stop## 二、卸载gitlabsudo rpm -e gitlab-ce## 三、查看gitlab进程ps aux | grep gitlab## 杀掉第一个守护进程kill -9 xxx## 再次查看gitlab进程是否存在## 四、删除所有包含gitlab的文件及目录find / -name gitlab|xargs rm -rf
7、汉化参考:https://gitlab.com/xhang/gitlab
结果:
阅读全文
0 0
- 笔记:gitlab-ce 基本安装(1)
- 笔记:gitlab-ce 替换(2)
- GitLab CE安装配置
- centos安装gitlab-ce
- 在linode centos7 上安装 gitlab-ce
- GitLab 安装笔记
- GitLab 安装笔记
- GitLab 安装配置笔记
- GitLab 安装配置笔记
- 笔记:gitlab-ci 可持续集成(3) runner 基本配置
- unbuntu 14.04 上 gitlab-ce 环境搭建笔记
- Gitlab CE 8.1.3 安装手册汉化版
- docker 安装gitlab-ce下ssh无法使用原因
- 安装 GitLab CE Omnibus package 到下面的操作系统
- linux下安装配置gitlab-ce-9.0.5
- 阿里云centOS6.8下安装gitlab CE
- gitlab一键安装 笔记
- ubuntu下GitLab安装笔记
- Qt5项目在windows环境下发布所需依赖库
- Prime Test POJ
- 一份直接去外网下载依赖包的pom文件,pom.xml
- Oracle配置--当多个服务器上的数据库实例同名时
- python画图包seaborn和matplotlib中文字体显示(针对windows系统,,使用ipython notebook)
- 笔记:gitlab-ce 基本安装(1)
- mysql 查询今天-昨天-本周-本月-本年 时间筛选
- Spark性能优化:数据倾斜调优
- php关于二分查找的算法
- Java Develop——基于 MySQL 的 SQL 规约/优化记录
- isEmpty和isBlank 的区别
- (1)网络七层模型--理论概念
- 谷歌调试技巧
- ExecutorService