jenkins + gitlab + redis + rabbitmq 安装记录
Posted hujunmin
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了jenkins + gitlab + redis + rabbitmq 安装记录相关的知识,希望对你有一定的参考价值。
1.安装 git
https://www.cnblogs.com/wulixia/p/11016684.html
2.安装 gitlab
https://www.cnblogs.com/yanjieli/p/10605381.html
3.jenkins 安装
https://www.cnblogs.com/li-zhi-long/p/12026499.html
4.Erlang 安装
https://www.cnblogs.com/amosli/p/11765483.html
5.RabbitMq安装
https://www.cnblogs.com/amosli/p/11765483.html
6.redis安装
https://www.cnblogs.com/zuidongfeng/p/8032505.html
https://www.cnblogs.com/jinjiyese153/p/8600703.html
7.elasticsearch
https://www.elastic.co/guide/en/elasticsearch/reference/current/getting-started-install.html
https://blog.csdn.net/jiankunking/article/details/82770832
https://blog.csdn.net/lin_will/article/details/79834733
启动命令
#gitlab 命令 gitlab-ctl reconfigure start gitlab-ctl reconfigure stop gitlab-ctl reconfigure status gitlab-ctl reconfigure reconfigure #jenkins 命令 systemctl stop jenkins systemctl daemon-reload systemctl start jenkins systemctl status jenkins.service #Firewall 命令 #开启常见端口命令 firewall-cmd --zone=public --add-port=80/tcp --permanent firewall-cmd --zone=public --add-port=443/tcp --permanent firewall-cmd --zone=public --add-port=22/tcp --permanent firewall-cmd --zone=public --add-port=21/tcp --permanent firewall-cmd --zone=public --add-port=53/udp --permanent #批量添加区间端口 firewall-cmd --zone=public --add-port=4400-4600/udp --permanent 关闭常见端口命令: firewall-cmd --zone=public --remove-port=80/tcp --permanent firewall-cmd --zone=public --remove-port=443/tcp --permanent firewall-cmd --zone=public --remove-port=22/tcp --permanent firewall-cmd --zone=public --remove-port=21/tcp --permanent firewall-cmd --zone=public --remove-port=53/udp --permanen #开启防火墙命令: systemctl start firewalld.service #重启防火墙命令: firewall-cmd --reload 或者 service firewalld restart #查看端口列表: firewall-cmd --permanent --list-port #禁用防火墙 systemctl stop firewalld #设置开机启动 systemctl enable firewalld #停止并禁用开机启动 sytemctl disable firewalld #查看状态 systemctl status firewalld 或者 firewall-cmd --state #redis 命令 service redisd stop service redisd start 查看端口是否启用 lsof -i:6379 #rabbitmq 命令 #启动rabbitmq rabbitmq-plugins enable rabbitmq_management rabbitmq-server 或 rabbitmq-server -detached(后台运行) #停止rabbitmq rabbitmqctl shutdown #elasticsearch #命令方式启动 su elasticsearch cd /usr/local/elasticsearch-7.7.0/bin ./elasticsearch -d #服务方式启动 systemctl stop elasticsearch systemctl start elasticsearch systemctl status elasticsearch.service #列出所有端口 netstat -ntlp #查看端口占用情况命令,比如查看80端口占用情况使用如下命令: lsof -i tcp:80
修改过的配置文件
gitlabel
vim /etc/gitlab/gitlab.rb external_url \'http://192.168.1.21:81\' #改为自己的IP地址 gitlab-ctl reconfigure #重新加载配置文件
jenkins
sudo vim /etc/sysconfig/jenkins JENKINS_USER="root" ## 原值 "jenkins" 必须修改,否则权限不足 JENKINS_PORT="82" ## 原值 "8080" JENKINS_JAVA_OPTIONS="-Djava.awt.headless=true" sudo vim /etc/init.d/jenkins candidates 中添加java 路径
elasticsearch
vim /usr/local/elasticsearch-7.7.0/config/elasticsearch.yml network.host: 0.0.0.0 vim /etc/security/limits.conf * soft nofile 65536 * hard nofile 131072 * soft nproc 2048 * hard nproc 4096 vim /etc/systemd/system/elasticsearch.service [Uint] Description=elasticsearch [Service] User=elasticsearch LimitNOFILE=100000 LimitNPROC=100000 ExecStart=/usr/local/elasticsearch-7.7.0/bin/elasticsearch [Install] WantedBy=multi-user.target systemctl enable elasticsearch vim /etc/sysctl.conf vm.max_map_count=655360 sysctl -p
以上是关于jenkins + gitlab + redis + rabbitmq 安装记录的主要内容,如果未能解决你的问题,请参考以下文章
GitLab + Jenkins + Docker + Kubernetes。