主机访问虚拟机中linux上的web服务
環境:主機windows xp 虛擬機centos 6.4
?
[root@localhost /]# iptables -I INPUT -p tcp --dport 80 -j ACCEPT
[root@localhost /]# /etc/rc.d/init.d/iptables save
iptables: Saving firewall rules to /etc/sysconfig/iptables:[? OK? ]
[root@localhost /]# cd /etc
[root@localhost etc]# cd init.d
[root@localhost init.d]# ls
auditd??????????? crond????? halt?????? iptables? keepalived? lvm2-lvmetad? netconsole? network? rdisc??????? rsyslog? saslauthd? sshd
blk-availability? functions? ip6tables? jexec???? killall???? lvm2-monitor? netfs?????? postfix? restorecond? sandbox? single???? udev-post
[root@localhost init.d]# /etc/init.d/iptables restart
iptables: Flushing firewall rules:???????????????????????? [? OK? ]
iptables: Setting chains to policy ACCEPT: filter????????? [? OK? ]
iptables: Unloading modules:?????????????????????????????? [? OK? ]
iptables: Applying firewall rules:???????????????????????? [? OK? ]
[root@localhost init.d]#
?
?
?
?
轉載于:https://www.cnblogs.com/davidwang456/p/3358265.html
《新程序員》:云原生和全面數字化實踐50位技術專家共同創作,文字、視頻、音頻交互閱讀總結
以上是生活随笔為你收集整理的主机访问虚拟机中linux上的web服务的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: How can I exclude di
- 下一篇: 解决 ERROR: JDWP Trans