Fedora16 mysql 伺服器啟動

來源:互聯網
上載者:User
Fedora16 mysql
伺服器啟動  

2012-03-10 16:32:50|  分類:

Linux/Unix |字型大小
 訂閱

從Fedora16開始,Redhat不再推薦ntsysv、chkconfig、service,而是建議使用新的服務管理工具systemctl (貌似功能強大)

對比表,以 apache / httpd 為例
任務 舊指令 新指令
使某服務自動啟動 chkconfig --level 3 httpd on
systemctl enable httpd.service
使某服務不自動啟動 chkconfig --level 3 httpd off
systemctl disable httpd.service
檢查服務狀態 service httpd status
systemctl status httpd.service (服務詳細資料) 
systemctl is-active httpd.service (僅顯示是否 Active)
顯示所有已啟動的服務 (誰知道?)
systemctl list-units --type=service
啟動某服務 service httpd start
systemctl start httpd.service

停止某服務 service httpd stop
systemctl stop httpd.service
重啟某服務 service httpd restart
systemctl restart httpd.service

















mysql安裝:

yum install mysql mysql-server ##安裝mysql及mysql伺服器systemctl start mysqld.service ##啟動mysql伺服器 systemctl enable mysqld.service##使mysql伺服器自動運行
mysqladmin -u root password '' ##設定root密碼為空白

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.