用vi编辑器打开 /etc/rc.local 追加: /usr/local/apche/bin/apchectl start /usr/local/mysql/bin/mysql_safe --user=mysql &