ubuntu和RedHat的命令差別
RH中有service命令來控制守護進程的start和stop,而ubuntu中直接用路徑
加上start和stop
RH中有chkconfig命令來配置進程作為守護進程的運行級別,在ubutu中默認有
update-rc.d命令,但是并不好用,可以直接用sysv-rc-conf來操作
apt-get install sysv-rc-conf
sysv-rc-conf --list
sysv-rc-conf --level 35 mysql.server on //讓mysql自啟動