2012年8月29日 星期三

xampp ubuntu 開機時自動啟動




xampp ubuntu 開機時自動啟動


ubuntu server (startup OR boot)xampp

http://ubuntuforums.org/showthread.php?t=1584852

1) Navigate to /etc/init.d
eg ' 
cd /etc/init.d/
'
2) Create a new file with nano eg 'nano'
sudo vi startup_lampp
3) Put the following into the file
#!/bin/sh
/opt/lampp/lampp start


4) Give execution permission to the file
eg '
sudo chmod +x startup_lampp
'
5) Check this by typing 'ls -l lampp' , the filename should be green if it worked
6) now use the following command to add it to startup runlevels
' 
update-rc.d -f startup_lampp defaults
sudo update-rc.d -f startup_lampp defaults
'


沒有留言:

張貼留言