下载 xmapp for linux 文件
xampp-linux-x64-7.1.10-0-installer.run
ftp 上传
授权
[root@Dralen ~]# cd /usr [root@Dralen usr]# ls bin etc games include lib lib64 libexec local sbin share src tmp xmapp [root@Dralen usr]# cd xmapp [root@Dralen xmapp]# ll 总用量 134356 -rw-r--r--. 1 root root 137577889 10月 30 17:06 xampp-linux-x64-7.1.10-0-installer.run [root@Dralen xmapp]# chmod a+x xampp-linux-x64-7.1.10-0-installer.run [root@Dralen xmapp]# [root@Dralen xmapp]#
a+x 所有权
安装
[root@Dralen xmapp]# ./xampp-linux-x64-7.1.10-0-installer.run----------------------------------------------------------------------------Welcome to the XAMPP Setup Wizard.----------------------------------------------------------------------------Select the components you want to install; clear the components you do not want to install. Click Next when you are ready to continue.XAMPP Core Files : Y (Cannot be edited)XAMPP Developer Files [Y/n] :yIs the selection above correct? [Y/n]: ----------------------------------------------------------------------------Installation DirectoryXAMPP will be installed to /opt/lamppPress [Enter] to continue:----------------------------------------------------------------------------Setup is now ready to begin installing XAMPP on your computer.Do you want to continue? [Y/n]: ----------------------------------------------------------------------------Please wait while Setup installs XAMPP on your computer. Installing 0% ______________ 50% ______________ 100% #########################################----------------------------------------------------------------------------Setup has finished installing XAMPP on your computer.
启动
[root@Dralen xmapp]# /opt/lampp/lampp startStarting XAMPP for Linux 7.1.10-0...XAMPP: Starting Apache...already running.XAMPP: Starting MySQL.../opt/lampp/share/xampp/xampplib:行22: netstat: 未找到命令ok.XAMPP: Starting ProFTPD.../opt/lampp/share/xampp/xampplib:行22: netstat: 未找到命令ok.
设置http环境密码 ftp密码 mysql密码
[root@Dralen lampp]# /opt/lampp/lampp securityXAMPP: Quick security check...XAMPP: MySQL is accessable via network. XAMPP: Normaly that's not recommended. Do you want me to turn it off? [yes] XAMPP: Turned off.XAMPP: Stopping MySQL...ok.XAMPP: Starting MySQL.../opt/lampp/share/xampp/xampplib:行22: netstat: 未找到命令ok.XAMPP: The MySQL/phpMyAdmin user pma has no password set!!! XAMPP: Do you want to set a password? [yes] XAMPP: Password: XAMPP: Password (again): XAMPP: Setting new MySQL pma password.XAMPP: Setting phpMyAdmin's pma password to the new one.XAMPP: MySQL has no root passwort set!!! XAMPP: Do you want to set a password? [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.XAMPP: The FTP password for user 'daemon' is still set to 'xampp'. XAMPP: Do you want to change the password? [yes] XAMPP: Password: XAMPP: Password (again): XAMPP: Reload ProFTPD...ok.XAMPP: Done.
设置防火墙 端口
firewall-cmd --zone=public --add-port=80/tcp --permanentfirewall-cmd --reload
至此 外网可以访问了