Objective
A few days ago, my friend had a spare vps,256m memory on hand, and I decided to play it. After some thinking, it is still used to hang up the station. Then see is the CENTOS6 system, decisive decision with never played Lnmp. So, Baidu, Google to find tutorials, a lot of tutorials are problematic, resulting in reloading countless systems, wasting a lot of time. Now summarize the experience of success.
Install screen
In terminal input ? Yum Install screen
Input after completion ? Screen-s Lnmp
Why did you do it? The answer is simple, because it can protect your remote connection and let the work stop unexpectedly. I was in the installation of LNMP time longer, and Xshell once inexplicably disconnected, scared I thought again to come. Fortunately, the beginning of the screen, the process is still.
If your terminal is accidentally disconnected at work, you can enter screen–ls to view all screen sessions and then enter the screen–r + codename to recover.
Installing LNMP
Enter the following code in the terminal
Wget-c http://soft.vpser.net/lnmp/lnmp1.1-full.tar.gz && tar zxf lnmp1.1-full.tar.gz && CD Lnmp1.1-full &&./centos.sh
Follow the prompts to install
The MySQL password is required here
Then enter here to verify that MySQL InnoDB is enabled
Select PHP Version
Select MySQL Version
I personally recommend it all up to date.
A long wait ..... I spent three hours ...
Done
Configure the site
The environment has been installed, how to make it can hang up the station.
In terminal input /root/vhost.sh
Here, enter the domain name to bind, where www.joycex.com and joycex.com are not the same domain name. It is recommended to enter here together, between two domain names open with a space.
If you accidentally hit the wrong, use Ctrl+backspace to delete, do not directly backspace (so that the child will not be deleted, but appear ^h)
The following prompt will appear after carriage return
If you need to add more domain names, do not need to enter n directly. If you need to enter Y return
Next is to set the site directory location, generally do not need to set the direct carriage return.
Here you choose whether to add pseudo-static rules, such as no pseudo-static, direct input n Enter. If you need to enter Y carriage, then select Pseudo-Static or custom pseudo-static
Select Y to receive the following prompt
The default already has a lot of things, you can directly enter the above name.
We install WordPress here, direct input WordPress can be.
Choose whether to open the log below
Generally, it's nothing. Select n
Appears: Press any key to start create Virtul host ... , enter again to confirm that the virtual host will be added automatically.
Install WordPress
In view of the command operation is very inconvenient, all recommended to download to the local, and then use WINSCP this sftp software upload to the site Directory
First go to http://cn.wordpress.org/ download WordPress
Upload with WINSCP
in the browser input /HTTP/domain/wp-admin/install.php
Then went into the WordPress Classic installation Interface, the hint is very simple, very easy to install
We're done in less than five minutes!
VPS with Lnmp installation WordPress