1. Centos 安装

安装 Centos 6.9 

配置网络

vi /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
TYPE=Ethernet
ONBOOT=yes
BOOTPROTO=dhcp
service network restart
ifconfig

设置静态IP

BOOTPROTO=static
IPADDR=192.168.0.150
NETMASK=255.255.255.0
GATEWAY=192.168.0.1
service network restart

配置hosts

vi /etc/hosts

192.168.0.150 eshop-cache01

安装SSH 服务

yum install openssh-server

service sshd restart

netstat -antp | grep sshd //查看是否开启22端口

chkconfig sshd on

关闭防火墙

service iptables stop
service ip6tables stop
chkconfig iptables off
chkconfig ip6tables off

vi /etc/selinux/config
SELINUX=disabled

通过SSH 链接远程的服务器

ssh root@192.168.0.150

 

posted @ 2018-04-18 08:55  kevin06  阅读(122)  评论(0编辑  收藏  举报