This short article records how to deploy the server'sArticle. This article is suitable for Linux beginners.
Step * modify the root user password
Paddwd Root
* Configure multi-IP address a to bind an IP address without restarting.
Ifconfig eth0: 1 x. x netmask 255.255.255.0
Ifconfig eth0: 2 x. x netmask limit 255.255.0
B. Save the configuration information to the file.
1. copy configuration information
Ifcfg-eth0/etc/sysconfig/network-scripts/ifcfg-eth0/etc/sysconfig/network-scripts/: 1
CP/etc/sysconfig/network-scripts/ifcfg-eth0/etc/sysconfig/network-scripts/ifcfg-eth0: 2
2. Use the VI command to modify the corresponding configuration file
VI/etc/sysconfig/network-scripts/ifcfg-eth0: 1
Device = eth0
Bootproto = none
Hwaddr = 00: 1E: 90: EE: 2C: 6f
Onboot = Yes
Netmask = 255.255.255.0 # enter the subnet mask provided by the service provider.
Ipaddr = x. x # enter the IP address to be allocated.
Gateway = x. x # enter the IP address of the gateway provided by the service provider.
Type = Ethernet
Service Network restart
* You can also save the ifconfig command to the/etc/rc. d/rc. Local file.
* Install Apache, MySQL, and PHP
Apache 2.2 is installed on centos by default. You only need to install MySQL and PHP. The installation process is also very simple. Use the yum command. Here is a specific article on how to install
Centos 5.x Yum install lamp (Apache + MySQL + PHP)
For more information, see centos-Build a lamp running environment.
Configure Apache
CD/etc/httpd/CONF/
CD/etc/httpd/CONF/extra/
<Virtualhost x. x: 80>
Serveradmin google@gmail.com
DocumentRoot/home/website/www.google.com
Servername Google.com
Serveralias www.google.com
Errorlog logs/dummy-google.com-error_log
Customlog logs/dummy-google.com-access_log common
</Virtualhost>
* Vsftpd
Install and configure vsftpd FTP server in centos 5 yum
= Vsftpd =
The error 530 login incorrect and 530 permission denied occur when you log on to vsftpd as a root user today.
530 permission denied
The reason is that userlist_enable = yes in/etc/vsftpd. conf.
/Etc/vsftpd/user_list contains the root list
Two solutions:
- Userlist_enable = No
- Remove root from user_list + Remove root from/etc/vsftpd/ftpusers
Error 530 login incorrect