Configure the CentOS server environment tutorial with the LNMP one-click installation package _linux

Source: Internet
Author: User
Tags php web server ssh centos server file transfer protocol phpmyadmin
Because you don't need to do your job, you don't need to compile a large number of commands. As a novice who uses Linux to configure the production environment, it is certainly the last thing to see. The following describes how to install LNMP in CentOS.

What is Lnmp
Lnmp refers to the nginx+mysql+php Web server architecture under the Linux system. This Web server architecture uses fewer resources, supports more concurrent connections, and represents higher efficiency. Very suitable for configuring a lower VPS.
Install LNMP
This is only described under CentOS installation.
1, login ssh (how to use SSH?) , type the following command to download the LNMP one-click installation package.
Wget-c http://soft.vpser.net/lnmp/lnmp0.6.tar.gz
2, execute the following command to extract LNMP one-click installation package.
Tar zxvf lnmp0.6.tar.gz
3, execute the following command to enter the directory lnmp0.6.
CD lnmp0.6/
4, execute the following command to start installation Lnmp
./centos.sh
5, input to bind the domain name, enter, and then enter to set the MySQL root password, carriage return, prompt "coolcodess any key to start ...", press any key start installation. The program automatically installs the compilation Nginx, PHP, MySQL, phpMyAdmin, Zend these several software.
Virtual Host Management
1, add the virtual host, execute the following command:
./vhost.sh
According to the prompts to enter the domain name to bind, enter, if you need to add more domain name, input y, and then enter the domain name to be otherwise bound, multiple domain names can be separated by space. Then enter the directory binding the domain name (absolute directory, such as/HOME/WWWROOT/LNMP, if you do not fill in the default is/home/wwwroot/bound domain name), and then choose whether to add pseudo static rules, default already has Discuz, wordcoolcodess, Sablog, Emlog, DABR, you can directly enter the above name, if you need to add custom pseudo static rules, directly enter a desired name, the program will automatically create a pseudo static file, directly in/usr/local/nginx/conf/your custom pseudo static name. conf To add a pseudo static rule on the line. Next prompts whether need to enable logging, generally do not need to start, directly input n on the line, if you need to start, enter Y, and then enter the name of the log file to define, carriage return will automatically add virtual host.
2, delete the virtual host, ssh execution:
rm/usr/local/nginx/conf/vhost/domain name. conf
3, state management and related management page
LNMP State Management
Start LNMP command:/ROOT/LNMP start
Stop LNMP command:/ROOT/LNMP stop
Reload Related profile command:/root/lnmp Reload
Restart LNMP command:/ROOT/LNMP restart
Other Administration pages
phpphpmyadmin:http://the domain name or ip/phpmyadmin/entered earlier
MySQL root Password: If you do not enter a direct return to root, otherwise enter the password for you.
How to upload files
Linux System mainstream FTP server has PUREFTPD and vsftpd. But we do not recommend installation, because the system itself with a file transfer function SFTP, is the secure file Transfer protocol abbreviation, security FTP. As long as you download the software WINSCP, enter the administrator username root and its password, you can use, very convenient, support drag and drop upload and download, like Windows Resource Manager.
WINSCP Download Address: http://www.jb51.net/softs/28790.html
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.