Linux常用命令合集

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 #停止开机自启动

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值