1. RCAT system environment requirements and software download and installation
Currently, RCAT scripts only support 32-bit or 64-bit CentOS 5/6/7 releases, and the memory must be larger than MB. The installation environment includes the basic WEB usage of Apache + MySQL + PHP, and supports some system optimization and acceleration components.
The code is as follows: |
Copy code |
Yum-y install wget
Yum-y install screen & screen
Wget-O rcat. sh http://rcat.gidcs.net/sh/rcat.sh;chmod 755 rcat. sh;./rcat. sh 2> & 1 | tee rcat. log
|
I see the source script download and installation address above. I remember what I saw at that time. the XYZ domain name site cannot be opened now. To ensure that the script can be used later without being lost, the old Left also downloads the script to the local file.
The code is as follows: |
Copy code |
Backup Script: http://soft.laozuo.org/lamp/rcat.sh
|
If the official installation path above is invalid, use the following alternative.
2. Install the LAMP environment using the RCAT script
After the script is installed, you will be prompted to enter any key to continue, then enter the current host name (whatever), email address (whatever), set the ROOT database password, and modify the current VPS server port. After setting, press enter to automatically install the SDK.
At last, this interface indicates that the LAMP installation in the RCAT environment is complete, which is much faster than compiling and installing it using a one-click package. Later, we will use the toolbox provided to quickly add sites and databases.
Third, RCAT quick addition of sites and databases
The code is as follows: |
Copy code |
Vhost. sh
|
Log on to the current root directory. We can see a vhost. sh file, which can be directly input in SSH to start the website creation mode. In general, we will manually deploy the site. Is it a little troublesome? The excellent thing about this script is that it can be quickly added.
Follow the prompts to add the domain name, FTP user name, and password to be bound, and set the database name and user name.
If you see this interface, the installation is complete. You can also download and install the WP program with one click. If you need it, enter y and press Enter. Otherwise, press enter n. Here I will install WP.
Here we can see that all FTP and database information is at the bottom. We want to save and download the information.
Finally, if the bound domain name is resolved to the current IP address, you can directly open the domain name URL after it takes effect, you can see the installation interface of the WP program, and enter the corresponding database information to complete the installation. If you need to modify the FTP file, log on to the corresponding site directory through the FTP account or SFTP. In this way, the rapid lamp yum deployment process is relatively smooth, much faster than our conventional WEB environment installation, or suitable for playing or deploying a simple LAMP environment, however, some WEB components have earlier versions.