Mysql
#开启mysql
service mysql start
#停止mysql
service mysql stop
#重启mysql
service mysql restart
Gitlab
#修改配置文件
vim /etc/gitlab/gitlab.rb
#使修改后的配置生效
gitlab-ctl reconfigure
#重启
gitlab-ctl restart
#关闭
gitlab-ctl stop
#开启
gitlab-ctl start
# 重置配置文件
gitlab-ctl reconfigure
# 重启
gitlab-ctl restart
#开机启动
systemctl enable gitlab-runsvdir.service
#禁止开机自启动
systemctl disable gitlab-runsvdir.service
Jenkins常用命令
. 重新启动Jenkins
#重启
systemctl restart jenkins
#停止
systemctl stop jenkins
#开启
systemctl start jenkins
#更新配置文件
systemctl daemon-reload
FastDFS
#启动
service fdfs_trackerd start
#状态
service fdfs_trackerd status
#停止
#service fdfs_trackerd stop
#启动
#service fdfs_storaged start
#状态
#service fdfs_storaged status
#停止
#service fdfs_storaged stop
Nacos
设置为开机启动:
systemctl enable nacos.service
启动nacos服务
systemctl start nacos.service
查看该service是否开机启用
systemctl is-enabled nacos.service
Redis
systemctl start redis.service #启动redis服务
systemctl stop redis.service #停止redis服务
systemctl restart redis.service #重新启动服务
systemctl status redis.service #查看服务当前状态
systemctl enable redis.service #设置开机自启动
systemctl disable redis.service #停止开机自启动