2012年10月6日 星期六
開機執行(command OR script)
http://blog.xuite.net/misgarlic/weblogic/37343210-%E9%96%8B%E6%A9%9F%E4%B9%8B%E5%BE%8C%E5%9F%B7%E8%A1%8C%E6%9F%90%E4%BA%9B+scripts
在 ubuntu 上是要改 /etc/rc.local 這個檔
(1) /etc/rc.local
這個檔案就放一些你想要執行的 command, scripts
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
'
訂閱:
文章 (Atom)