亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

centos 怎么將mysql加入開機自啟動啊 (centos7.2 mysql 5.7)

centos 怎么將mysql加入開機自啟動啊 (centos7.2 mysql 5.7)

we_cant_stop 2016-09-12 14:15:49
centos 怎么將mysql加入開機自啟動啊 (centos7.2 mysql 5.7)
查看完整描述

4 回答

?
qq_慕九州0365251

TA貢獻1條經驗 獲得超0個贊

touch /usr/lib/systemd/system/mysqld.service

重啟centos7即可

查看完整回答
反對 回復 2020-03-06
?
筑夢之路

TA貢獻86條經驗 獲得超23個贊

vim /etc/rc.d/rc.local

/usr/local/mysql/bin/mysqld start 或者 ?/usr/local/mysql/bin/mysqld start

chkconfig --level 2345 mysqld on

查看完整回答
反對 回復 2016-09-12
  • we_cant_stop
    we_cant_stop
    我加上了,但是我在chkconfig --list列表里看不到啊。service mysqld start
  • 筑夢之路
    筑夢之路
    加上了就行,就不用chkconfig了
  • 4 回答
  • 1 關注
  • 2654 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號