服务端开启firewalld或者iptables服务,客户端可以通过http://ip/访问到的页面信息为hello,world;客户端可以通过端口2000访问服务器的ssh服务
128:
[root@localhost ~]# yum install -y httpd
[root@localhost ~]# setenforce 0
[root@localhost ~]# systemctl stop firewalld
[root@localhost ~]# cd /var/www/html/
[root@localhost html]# echo hello word >index.html
[root@localhost html]# systemctl restart httpd
测试
[root@localhost html]# curl 192.168.183.128
hello word
[root@localhost html]# vim /etc/ssh/sshd_config
测试:
[root@10 ~]# ssh root@192.168.183.128 -p 2000
root@192.168.183.128’s password:
Activate the web console with: systemctl enable --now cockpit.socket
This system is not registered to Red Hat Insights. See https://cloud.redhat.com/
To reg