xampp-linux-x64-7.1.10-0-installer.run
[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 全部權php
[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] :y Is the selection above correct? [Y/n]: ---------------------------------------------------------------------------- Installation Directory XAMPP will be installed to /opt/lampp Press [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 start Starting 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.
[root@Dralen lampp]# /opt/lampp/lampp security XAMPP: 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 --permanent firewall-cmd --reload
至此 外網能夠訪問了mysql