1.安装centOS7
- 下载安装VMwarea
https://www.jianshu.com/p/552179808ebf - 下载CentOS7
http://mirror.bit.edu.cn/centos/7.6.1810/isos/x86_64/CentOS-7-x86_64-DVD-1810.iso
- 安装CentOS7
https://blog.youkuaiyun.com/babyxue/article/details/80970526
- 开启ssh服务 为了使用远程连接工具例如xshell、SecureFX 8.1、SecureCRT 8.1
①.查看是否有SSH安装
注:若为非root用户登录,输入执行某些命权限不够时需加sudo
rpm -qa | grep ssh
②.若没有则安装
yum install openssh-server
③.开放22端口
在ssh配置文件里进行配置 :
vim /etc/ssh/sshd_config
用esc+:wq 保存退出
③.开启ssh服务
/bin/systemctl start sshd.service
④.检查ssh服务是否开启
ps -e | grep sshd
⑤.检查22端口是否开启
netstat -anpt | grep 22
注意:若提示没有netstat 命令则 使用:yum install net-tools 进行安装
参考文章:https://blog.youkuaiyun.com/ASN_forever/article/details/80931799
- 设置ssh开启自启动
systemctl enable sshd.service
或chkconfig sshd on
- 关闭防火墙(为了使用远程工具连接)
查看防火墙状态
firewall-cmd --state
停止firewall
systemctl stop firewalld.service
禁止firewall开机启动
systemctl disable firewalld.service
参考:https://blog.youkuaiyun.com/ytangdigl/article/details/79796961
- 关闭selinux (为了使用远程工具连接)
进入到/etc/selinux/config文件
vi /etc/selinux/config
将SELINUX=enforcing改为SELINUX=disable