8088/8089的搭建

[root@server 8088]# cd ..
[root@server www]# cd 8089
[root@server 8089]# echo "this is new port 8089 for website  www.hubtuv.com">>index.html
[root@server 8089]# cd /etc/httpd/conf.d/
[root@server conf.d]# vim 8088.conf
[root@server conf.d]# vim 8089.conf
[root@server conf.d]# cd /etc/httpd/conf
[root@server conf]# vim httpd.conf 
[root@server conf]# systemctl restart httpd.service 
[root@server conf]# cd /ww
bash: cd: /ww: No such file or directory
[root@server conf]# cd /www/
[root@server www]# ll
total 0
drwxr-xr-x. 2 root root 24 Dec 14 15:31 8088
drwxr-xr-x. 2 root root 24 Dec 14 15:32 8089
drwxr-xr-x. 2 root root 24 Dec 14 14:28 hubstc
[root@server www]# systemctl status firewalld.service 
● firewalld.service - firewalld - dynamic firewall daemon
   Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)
   Active: inactive (dead) since Thu 2023-12-14 15:07:22 CST; 32min ago
     Docs: man:firewalld(1)
  Process: 817 ExecStart=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS (code=exited, status=0/SUCCESS)
 Main PID: 817 (code=exited, status=0/SUCCESS)

Dec 14 13:49:27 server systemd[1]: Starting firewalld - dynam...
Dec 14 13:49:29 server systemd[1]: Started firewalld - dynami...
Dec 14 15:07:20 server systemd[1]: Stopping firewalld - dynam...
Dec 14 15:07:22 server systemd[1]: Stopped firewalld - dynami...
Hint: Some lines were ellipsized, use -l to show in full.
[root@server www]# getenforce 
Permissive
[root@server www]# ping 192.168.10.10
PING 192.168.10.10 (192.168.10.10) 56(84) bytes of data.
64 bytes from 192.168.10.10: icmp_seq=1 ttl=64 time=0.034 ms
64 bytes from 192.168.10.10: icmp_seq=2 ttl=64 time=0.060 ms
^C
--- 192.168.10.10 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1030ms
rtt min/avg/max/mdev = 0.034/0.047/0.060/0.013 ms
[root@server www]# ping 192.168.10.20
PING 192.168.10.20 (192.168.10.20) 56(84) bytes of data.
^C
--- 192.168.10.20 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1097ms

[root@server www]# systemctl restart httpd.service 
[root@server www]# systemctl restart network
[root@server www]# ping 192.168.10.20
PING 192.168.10.20 (192.168.10.20) 56(84) bytes of data.
64 bytes from 192.168.10.20: icmp_seq=1 ttl=64 time=1.79 ms
64 bytes from 192.168.10.20: icmp_seq=2 ttl=64 time=1.63 ms
64 bytes from 192.168.10.20: icmp_seq=3 ttl=64 time=3.13 ms
^C
--- 192.168.10.20 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2023ms
rtt min/avg/max/mdev = 1.633/2.185/3.133/0.674 ms
[root@server www]# 

 

posted on 2023-12-14 17:17  徐俊大  阅读(47)  评论(0编辑  收藏  举报