Alibaba Cloud installs XAMPP

Alibaba Cloud server is a bit expensive, so people generally do not buy high-end equipment, and XWINDOW cannot be used with PUTTY connection, so generally use more commands. Here's how to install XAMPP on CENTOS.

1. Use PUTTY to connect to the remote server, and use uname -a to check how many bits the system has. X86_64 refers to the CPU architecture, how many bits are in the CPU, and generally speaking, how many bits are in the software.

 

2. Use a browser to view https://www.apachefriends.org/zh_cn/download.html on WINDOWS to find the appropriate version, right-click, and copy the download address.

3. Enter wget https://www.apachefriends.org/xampp-files/7.2.4/xampp-linux-x64-7.2.4-0-installer.run in SHELL, and then execute.

 

4. After the download is complete, use ls -al to view the permissions and find that it cannot be executed

 

5. Change permissions: chmod -R 755 xampp-linux-x64-7.2.4-0-installer.run

6. Generally speaking, the memory of the cloud server you buy may be a little small. In order to prevent insufficient memory during the installation process, configure swap first. Before configuring, use free -h to check the memory status:

 

7. The code (machine code) cannot be executed if it cannot be loaded into the memory. When the memory is small, virtual memory can be used, and the size is generally set to be twice as large as the actual memory.

增加swap:dd if=/dev/zero of=/var/swap bs=1024 count=2048000

Create a swap file: mkswap /var/swap

Load the swap file: swapon /var/swap

 

8. Install: ./xampp-linux-x64-7.2.4-0-installer.run

 

9. Enter opt/lampp/lampp start to start

10. Maybe because port 80 is occupied, Apache cannot be started. It does not matter. Find out which process is occupied, and then kill it.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325977358&siteId=291194637