后台服务的开启、关闭、查看

第一种方式使用 service

sudo service 服务名 start  # 
sudo service 服务名 stop   #
service 服务名 status      # 

第二种方式 使用 /bin/systemctl

sudo /bin/systemctl start 服务名   # 
sudo /bin/systemctl stop 服务名    # 
sudo /bin/systemctl status 服务名  #

 

posted on 2018-11-08 15:56  0820LL  阅读(380)  评论(0编辑  收藏  举报

导航