歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> 關於Linux >> CentOS—配置網卡、FTP、安裝AMP

CentOS—配置網卡、FTP、安裝AMP

日期:2017/3/1 16:20:34   编辑:關於Linux
CentOS—配置網卡、FTP、安裝AMP 這篇短文記錄了從拿到服務器的root賬號和密碼後,如何部署服務器的文章。本篇文章適合給Linux初學者參考。 步驟 * 修改root用戶密碼 paddwd root * 配置多IP地址 A 在不重啟的情況下,綁定IP地址 ifconfig eth0:1 x.x.x.x netmask 255.255.255.0 ifconfig eth0:2 x.x.x.x netmask 255.255.255.0 B 保存配置信息到文件 1 拷貝配置信息 cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0:1 cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0:2 2 使用vi命令,修改對應的配置文件 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   #這裡填寫服務商提供的子網掩碼 IPADDR=x.x.x.x       #這裡填寫你要分配的IP地址 GATEWAY=x.x.x.x       #這裡填寫服務商提供的網關IP TYPE=Ethernet service network restart * 或者保存 ifconfig 的命令到 /etc/rc.d/rc.local 文件中 * 安裝Apache,Mysql,PHP 默認CentOS上已經安裝了Apache 2.2,我們只需要安裝Mysql,PHP即可。安裝過程也很簡單,使用yum命令。這裡有一遍具體將如何安裝的文章 CentOS 5.x yum安裝LAMP(Apache+MySQL+PHP) 或者參考這裡:CentOS — 搭建 LAMP 運行環境 配置Apache cd /etc/httpd/conf/ cd /etc/httpd/conf/extra/ <VirtualHost x.x.x.x:80> ServerAdmin [email protected] 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 centos 5 yum安裝與配置vsFTPd FTP服務器 == VsFtpd == 今天用root用戶登錄vsftpd出現530 Login incorrect錯誤與530 Permission denied錯誤。 530 Permission denied 原因是/etc/vsftpd/vsftpd.conf裡userlist_enable=YES /etc/vsftpd/user_list 含有root名單 2種解決辦法: userlist_enable=NO 將root從user_list中去掉 + 將root從/etc/vsftpd/ftpusers中去掉 530 Login incorrect錯誤
Copyright © Linux教程網 All Rights Reserved