[root@localhost ~]#vim /etc/sysconfig/network-script/ifcfg-[interface]
BOOTPROTO="static"
IPV6INIT="no"
IPV6_AUTOCONF="no"
IPV6_DEFROUTE="no"
IPV6_PEERDNS="no"
IPV6_PEEROUTES="no"
IPADDR="10.11.11.1"
NETMASK="255.255.255.0"
GATEMAY="10.11.11.254"
DNS1="10.11.11.1"
//修改主机名
[root@localhost ~]#vim /etc/hostname
sv.sevenwin.org
[root@localhost ~]#vim /etc/hosts
10.11.11.1 sv sv.sevenwin.org
[root@localhost ~]#systemctl restart network /*重启网络服务*/
[root@localhost ~]#ifconfig /*验证*/
[root@localhost ~]#hostname
sv.sevenwin.org
//先挂载光盘
[root@localhost ~]
[root@localhost ~]
[root@localhost ~]
mount:/dev/sr0 写保护,将以只读方式挂载
//安装FTP服务
[root@localhost ~]
[root@localhost ~]
[root@localhost ~]
[root@localhost ~]
//修改FTP服务配置文件,启用被动模式
[root@localhost ~]
//在connect_from_port_20=YES后添加以下内容
pasv_enable=YES
pasv_min_port=3001
pasv_max_port=3100
//设置SELinux规则
[root@localhost ~]
[root@localhost ~]
[root@localhost ~]
[root@localhost ~]#mkdir /etc/yum.repos.d/old /*先备份后修改*/
[root@localhost ~]#rm -rf /etc/yum.repos.d/*.repo /etc/yum.repos.d/old/
[root@localhost ~]#cp /etc/yum.repos.d/old/CentOS-Base.repo /etc/yum.repos.d/
[root@localhost ~]#vim /etc/yum.repos.d/CentOS-Base.repo
[myCentOS-DB]
name=CentOS-$releasever - Base
baseurl=file:
enabled=1
gpgcheck=1
gpgkey=file:
[root@localhost ~]#yum -y install tftp-server /*安装测试*/
[root@localhost ~]#[root@localhost ~]#vim /etc/yum.repos.d/CentOS-Base.repo
[myCentOS-DB]
name=CentOS-$releasever - Base
baseurl=ftp:
enabled=1
gpgcheck=1
gpgkey=file:
[root@localhost ~]#yum -y install httpd