Adding a script to be run at bootup in Ubuntu Debian
* 加入在rcS檔按裏面最下行
* you can add it in the rcS file
joec@ubuntu~$ sudo vim /etc/init.d/rcS
比如說我一開機就想跑Dynamic DNS這個執行檔
dydns
joec@ubuntu~$ sudo ./dydns
讓他自動開整理出一個開機指令
*auto create script in Run Console Levels
joec@ubuntu~$ sudo /etc/init.d/update-rc.d dydns defaults
Adding system startup for /etc/init.d/dydns ...
/etc/rc0.d/K20dydns -> ../init.d/dydns
/etc/rc1.d/K20dydns -> ../init.d/dydns
/etc/rc6.d/K20dydns -> ../init.d/dydns
/etc/rc2.d/S20dydns -> ../init.d/dydns
/etc/rc3.d/S20dydns -> ../init.d/dydns
/etc/rc4.d/S20dydns -> ../init.d/dydns
/etc/rc5.d/S20dydns -> ../init.d/dydns
執行你的執行檔
joec@ubuntu:/etc/init.d$ sudo chmod +x dydns
2008年1月25日 星期五
如何在Linux, Ubuntu, Debian下安裝 LAMP Apache 2.2, MySQL 5, PHP 4, SSH
How To install LAMP Apacle MySQL PHP SSH On Ubuntu 7.10 Gusty Gibbon
如何在linux, ubuntu, debian下安裝 apache, mysql, php, ssh
ubuntu apache2 + php5 + mysql5
1. ssh server for remote access
sudo apt-get install ssh
2. database server
sudo apt-get install mysql-server
3. apache http server
sudo apt-get install apache2
4. php for apache http server
sudo apt-get install php5
5. mysql for apache http server
sudo apt-get install libapache2-mod-auth-mysql
sudo apt-get install php5-mysql
remember! reboot your computer afterward!
如何啟動,停止,重新啟動 Mysql, Apache
start, restart, stop apache
sudo /etc/init.d/apache2 restart
start, restart, stop mysql
sudo /etc/init.d/mysql restart
如何在linux, ubuntu, debian下安裝 apache, mysql, php, ssh
ubuntu apache2 + php5 + mysql5
1. ssh server for remote access
sudo apt-get install ssh
2. database server
sudo apt-get install mysql-server
3. apache http server
sudo apt-get install apache2
4. php for apache http server
sudo apt-get install php5
5. mysql for apache http server
sudo apt-get install libapache2-mod-auth-mysql
sudo apt-get install php5-mysql
remember! reboot your computer afterward!
如何啟動,停止,重新啟動 Mysql, Apache
start, restart, stop apache
sudo /etc/init.d/apache2 restart
start, restart, stop mysql
sudo /etc/init.d/mysql restart
訂閱:
文章 (Atom)