ln -s /opt/lampp/xampp /etc/rc.d/init.d/xampp chkconfig --add xampp chkconfig xampp on /opt/lampp为默认XAMPP安装目录 参考: centos+xampp+开机启动mysql_Linux下Xampp增加开机自启动