拆除清運工程價格便宜,樓層搬運快速清空
不論遠近免費估價,全年無休
廣告招牌工程拆除清運工程價格便宜,樓層搬運快速清空
不論遠近免費估價,全年無休

首頁  •  j2h 論壇 • 軟體討論     • 

[教學]Fedora17 開機啟動 mysql httpd 教學

房東:小蛙
發表時間:2013-04-14
[檢舉]


之前在fedora 17 上安裝了apache 和mysql,當時並沒有設置開機自動啟動。


最近又重新练习网页,每次开机总是要手动启动httpd和mysqld,不方便,就想设置成开机自动启动apache和mysql。最近又重新練習網頁,每次開機總是要手動啟動httpd和mysqld,不方便,就想設置成開機自動啟動apache和mysql。


fedora 17 怎样设置开机自动启动httpd和mysqld服务呢? fedora 17 怎樣設置開機自動啟動httpd和mysqld服務呢?


我在网上找到了下面两条命令:我在網上找到了下面兩條命令:


systemctl enable httpd.service systemctl enable httpd.service


systemctl enable mysqld.service systemctl enable mysqld.service


如果要取消开机自动启动apache和mysql,则用下面的命令如果要取消開機自動啟動apache和mysql,則用下面的命令


systemctl disable httpd.service systemctl disable httpd.service

systemctl disable mysqld.service systemctl disable mysqld.service


可是,我想起了以前我看过开机自动运行httpd服务好像不是上面的命令,而是可是,我想起了以前我看過開機自動運行httpd服務好像不是上面的命令,而是

chkconfig –level 3 httpd on chkconfig –level 3 httpd on


那么\chkconfig 和systemctl 这两个命令又有什么\区别与联系呢?那麼chkconfig 和systemctl 這兩個命令又有什麼區別與聯繫呢?


我在网上找到了下面这个关于systemctl 和chkconfig 指令用法比较的表格我在網上找到了下面這個關於systemctl 和chkconfig 指令用法比較的表格













































任务任務 旧指令舊指令 新指令新指令
使某服务自动启动使某服務自動啟動 chkconfig –level 3 httpd on chkconfig –level 3 httpd on systemctl enable httpd.service systemctl enable httpd.service
使某服务不自动启动使某服務不自動啟動 chkconfig –level 3 httpd off chkconfig –level 3 httpd off systemctl disable httpd.service systemctl disable httpd.service
检查服务状态檢查服務狀態 service httpd status service httpd status systemctl status httpd.service systemctl status httpd.service
显示所有已启动的服务顯示所有已啟動的服務 chkconfig –list chkconfig –list systemctl list-units –type=service systemctl list-units –type=service
启动某服务啟動某服務 service httpd start service httpd start systemctl start httpd.service systemctl start httpd.service
停止某服务停止某服務 service httpd stop service httpd stop systemctl stop httpd.service systemctl stop httpd.service
重启某服务重啟某服務 service httpd restart service httpd restart systemctl restart httpd.service systemctl restart httpd.service

这下明白了。這下明白了。






  • 贊助網站       

    優潔清潔公司
    夏季清潔讓您煥然一新,專業清潔團隊,寶貝家具不受損,輕鬆擁有乾淨居家,守護您的健康環境
    優潔電話清潔公司
    清潔公司, 電話清潔, 清潔保養, 電腦清潔, 清潔消毒, 清潔服務, 消毒服務
    DRAPERY窗簾設計
    捲簾、窗簾布、窗簾布多種款式,免費丈量,挑戰市場超低價,為家輕鬆增添新意



  •  共 0 人回應

    姓名:
    佈告內容: