Centos-configure Nic, FTP, and install amp

Source: Internet
Author: User

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
 

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.