After centos is installed for linuxvps, install the environment that uses nginx as the front-end to process static files and apache backend to process dynamic files in php, mysql, and buffer plug-ins. # Installer: knives # Time: 2011-04-151. partition fdisk/dev/hda // Here you may be sdavi/etc/fstab // permanent mount disk
After centos is installed for linux vps, install a php, mysql, and buffer plug-in environment that uses nginx as the front-end to process static files and apache backend to process dynamic files.
# Installer: Shidao
# Time: 2011-04-15
1. partition
Fdisk/dev/hda // Here you may be sda
Vi/etc/fstab // permanent mounting disk
Mount
Account password change
Passwd root
2. update yum source
Here I use the yum source of 163. of course, you can choose the official one. after all, the official one is full, and some libraries of 163 are not very full. Back up/etc/yum. repos. d/CentOS-Base.repo first
Cd/etc/yum. repos. d/
Mv CentOS-Base.repo CentOS-Base.repo.backup
Download the corresponding version of the repo file and put it in/etc/yum. repos. d/(back up the file before the operation)
CENTOS4
WgetHttp://mirrors.163.com/.help/CentOS4-Base-163.repo
Nnyos5
WgetHttp://mirrors.163.com/.help/CentOS5-Base-163.repo
Rename:
Mv CentOS5-Base-163.repo CentOS-Base.repo
Yum makecache
3.
Glossary: LNAMP is a set of production environment installation packages that are mainly used by Linux (CentOS), Nginx, Apache, Mysql, and Php, and supplemented by Pure-ftpd and Jailkit. all operations are integrated into a Linux Shell script file. administrators can easily install, uninstall, add user virtual hosts (subdomains), and delete user virtual hosts (subdomains. it facilitates the system administrator to the maximum extent and does not affect the subsequent installation and compatibility of other software (limited ).
Implement functions:
1. fully automated source code installation | uninstall (limited) apache, mysql, php, nginx, pureftpd, jailkit, phpmyadmin
2. automatically update the IP address to IP address usage list of the local machine after the instance is started,For adding domain namesAndUpdate default VM
3. quickly add/delete users, add/delete virtual hosts, databases, etc.
4. SSH is enabled by default, and SSH has chroot, facilitating FQ...
5. the FTP service is activated by default. after a user is added, the FTP user name is consistent with the Shell user name.
How to Get installation?
Download version:Http://icodex.org/dl/lnamp-1.0.tar.gz
Full version:Http://icodex.org/dl/lnamp_src-1.0.tar.gz
Decompress the package and run #./install. sh to directly install the package.
For details, see:Http://lnamp.net/
System requirements
Linux CentOS 5 (32bit/64bit)
At least 2 GB hard disk capacity
Memory above MB
Use Tips:
Install: Download the one-click package, decompress the package, and run #./install. sh to install the package immediately. you cannot install the package again after the package is installed. you must uninstall the package before installing the package again.
Uninstall: execute # lnamp uninstall the installed library files will not be deleted. you can cancel the configuration by mistake.
Add a User: The demo is used as an example. execute # lnamp create demo and you will be prompted to set the user password, primary domain name, hard disk quota (Beta), etc.
List users: execute # lnamp list
Edit User: take user demo as an example. execute # lnamp modify demo to display the menu, from which you can select reset user password, hard disk quota (Beta), add and delete sub-domain names, add and delete databases, etc.
Delete a user: take the user demo as an example. if the option # lnamp remove demo is not confirmed again, delete all configuration files, home directories, and databases under the user name with one click. use it with caution.
Access the database: append/phpmyadmin after any bound domain name can be accessed through the form of web pages to database management tools, such as: http://www.domain.com/phpmyadmin
Database root user: you can directly execute it on the terminal # mysql can access the mysql database command line tool with one click
The root password is randomly generated. to view the password, check # cat/root/. my. cnf in the terminal.
Manually restart the service
Service httpd restart # restart nginx and apache
Service mysql restart # restart mysql
Service pureftpd restart # restart pureftpd
Part