一)安装软件

#安装vsftpd,用户客户端与服务器的文件传输
yum -y install openssh vsftpd
#启动vsftpd
service vsftpd start
chkconfig vsftpd on

二)设置网络

#修改主机名
vi /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=shop.madman.com

#修改网卡
vi /etc/sysconfig/network-scripts/ifcfg-eth0
BOOTPROTO=none
IPADDR=192.168.18.132
NETMASK=255.255.255.0
GATEWAY=192.168.18.2
DNS1=202.96.209.5
DNS2=8.8.8.8
#自动激活网卡
ONBOOT=Yes

#关闭防火墙
service iptables stop
chkconfig iptables off
#关闭SELINUX	
vi /etc/sysconfig/selinux
SELINUX=disabled  enforing 
#设置hostname
vi /etc/hosts	
127.0.0.1   shop.madman.com
::1         shop.madman.com
192.168.18.132 shop.madman.com 

三)设置时间同步

#显示时区
date --help #获取帮助
date -R
date +%z
#修改时区
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime 
#同步时间命令
ntpdate asia.pool.ntp.org 
#启动时间服务
service ntpd start
# 自动同步时间crontab -e加入
0-59/10 * * * * /usr/sbin/ntpdate asia.pool.ntp.org 
#重启crond服务区
service crond restart
posted on 2017-03-06 16:23  壹零壹零  阅读(116)  评论(0编辑  收藏  举报