修改用户密码: passwd 修改linux主机名 vi/etc/sysconfig/network vim/etc/host 主机名立即生效 hostname selinux和防火墙 Redhat使用了SELinux来增强安全,关闭的办法为: 1.永久有效 修改/etc/selinux/config文件中的SELINUX=""为disabled,然后重启。 2.即时生效 setenforce 0 关闭防火墙的方法为: 1.永久性生效 开启:chkconfig iptables on 关闭:chkconfig iptables off 2.即时生效,重启后失效 开启:service iptables start 关闭:service iptables stop 配置nameserver,确保能连接网络 ping www.baidu.com ping 202.108.22.5 vi/etc/resolv.conf nameserver 8.8.8.8 nameserver 114.114.114.114 配置163的yum源 yum -y install wget cd /etc/yum.repos.d/ wget http://mirrors.163.com/.help/CentOS6-Base-163.repo 重启linux reboot 安装scp,vim命名 yum -y install openssh-clients vim 需要说明的是对于Linux下的其它服务都可以用以上命令执行开启和关闭操作 补充: a.防火墙还需要关闭ipv6的防火墙: chkconfig ip6tables off 并且可以通过如下命令查看状态: chkconfig--list iptables b.selinux状态可以通过以下命令查看: sestatus (责任编辑:IT) |