ubuntu下lampp自启动

1. 以 root 的身份登入
2. 在 /etc/init.d 目錄下建立 lampp.sh 檔案

lampp.sh 內容如下:

#!/bin/sh
cd /opt/lampp
./lampp start

3. 更改權限

chmod 755 lampp.sh

4. 編輯 /etc/init.d/rc.local 在最後一行加上:

exec /etc/init.d/lampp.sh重新開機就完成了。

你可能感兴趣的:(ubuntu下lampp自启动)