centos下:
First, find out your default runlevel.
Simply type
egrep :initdefault: /etc/inittab
You should now see a line containing a number between two colons.
In most cases 3 or 5 (2 if you’re using Debian).
Go into the directory which configures this runlevel. If for example your runlevel is 3, then you have to change into the /etc/rc.d/rc3.d directory:
cd /etc/rc.d/rc3.d
If your system didn’t provide /etc/rc.d/rc3.d please try also /etc/init.d/rc3.d and /etc/rc3.d.
Now carry out the actual configuration by typing:
ln -s /opt/lampp/lampp S99lampp
ln -s /opt/lampp/lampp K01lampp
引用地址:http://www.apachefriends.org/en/faq-xampp-linux.html#start