Centos7服務systemctl命令

2021-07-30 05:35:00 字數 509 閱讀 2041

centos7的服務啟動,停止等命令和以前版本已經不一樣了,用全新的命令了,下面主要給大家介紹我經常使用的一些服務的命令

1.httpd開機自啟動

systemctl enable httpd.service
2.httpd開機不自啟動

systemctl disable httpd.service
3.啟動httpd

systemctl start httpd.service
4.停止httpd

systemctl stop httpd.service
5.重啟httpd

systemctl restart httpd.service
6.檢查httpd狀態

centos7 開啟關閉服務

centos 7 中使用systemctl工具來管理服務程式,包括了service和chkconfig 啟動乙個服務 systemctl start firewalld.service 關閉乙個服務 systemctl stop firewalld.service 重啟乙個服務 systemctl ...

centos7安裝ssh服務

rpm qa grep e openssh 顯示結果含有以下三個軟體,則表示已經安裝,否則需要安裝缺失的軟體 openssh ldap 6.6.1p1 35.el7 3.x86 64 openssh clients 6.6.1p1 35.el7 3.x86 64 openssh 6.6.1p1 35...

Centos7 安裝redis服務

1.先安裝gcc編譯器,否則make的時候會報錯 yum y install gcc wget io releases redis 4.0 1.tar gz tar xzf redis 4.0 1.tar gz cd redis 4.0 1 make3.二進位制檔案是編譯完成後在src目錄下,通過下...