进入 /opt下 一、xampp下载地址: http://sourceforge.net/projects/xampp/files/XAMPP%20Linux/1.8.3/ 或者 wget http://sourceforge.net/projects/xampp/files/XAMPP%20Linux/1.8.3/xampp-linux-x64-1.8.3-1-installer.run 三、下载完以后,给该文件添加执行权限: chmod +x xampp-linux-x64-1.8.3-1-installer.run 四、安装xampp: [root@nginxone src]# ./xampp-linux-x64-1.8.3-1-installer.runWelcome to the XAMPP Setup Wizard.
Select the components you want to install; clear the components you do not want Is the selection above correct? [Y/n]: y
Installation Directory Press [Enter] to continue :Setup is now ready to begin installing XAMPP on your computer. Do you want to continue? [Y/n]: y
Please wait while Setup installs XAMPP on your computer. #########################################
Setup has finished installing XAMPP on your computer.
问题2:修改mysql的root密码,因为默认为空
问题3:修改了mysql的root登陆密码phpmyadmin不能登陆了 八、添加开机启动: ln –s /opt/lampp/xampp /etc/rc.d/init.d/xampp九、如果执行完上面这条还不能开机自动启动,再执行下面1条语句。 chkconfig –add xampp查看 chkconfig –list | grep xampp
/opt/lampp/xampp stoprm -rf /opt/lampp
项目放到在/opt/lampp的htdocs文件夹下浏览器输入localhost/项目名即可访问。 |