1、下载XAMPP
wget 地址
wget https://www.apachefriends.org/xampp-files/7.2.12/xampp-linux-
2、授权
chmod 777 ./xampp-linux-x64-7.2.12-0-installer.run
3、执行
./xampp-linux-x64-7.2.12-0-installer.run
安装过程中,遇到选项,全部选y
4、安装步骤完成
启动
/opt/lampp/lampp start
关闭
/opt/lampp/lampp stop
重启
/opt/lampp/lampp restart
关闭ftp
/opt/lampp/lampp stopftp
5、配置密码
/opt/lampp/lampp security
依次填写即可
设置xampp的密码: XAMPP: Quick security check… XAMPP: Your XAMPP pages are NOT secured by a password. XAMPP: Do you want to set a password? [yes] yew XAMPP: Do you want to set a password? [yes] yes XAMPP: Password: XAMPP: Password (again): 用户名默认是:xampp 设置phpMyAdmin的密码: XAMPP: The MySQL/phpMyAdmin user pma has no password set!!! XAMPP: Do you want to set a password? [yes] yes XAMPP: Password: XAMPP: Password (again): XAMPP: Setting new MySQL pma password. XAMPP: Setting phpMyAdmin’s pma password to the new one. 设置mysql的root账户: XAMPP: MySQL has no root passwort set!!! XAMPP: Do you want to set a password? [yes] yes XAMPP: Write the password somewhere down to make sure you won’t forget it!!! XAMPP: Password: XAMPP: Password (again): XAMPP: Setting new MySQL root password. XAMPP: Change phpMyAdmin’s authentication method. 设置ftp密码: XAMPP: The FTP password for user ‘daemon’ is still set to ‘xampp’. XAMPP: Do you want to change the password? [yes] yes XAMPP: Password: XAMPP: Password (again):
本文参考: