If you are using a cloud server, the website will not open, so most of the vps port 80 is not open or blocked, so how does CentOS open vps 80 port? Need to open through the firewall, the specific with the small series to understand it.
CentOS firewall to open port 80
# /sbin /iptables -I INPUT -p tcp --dport 80 -j ACCEPT
# /sbin /iptables - I INPUT -p tcp --dport 22 -j ACCEPT
Then save:
#/etc/rc.d/init.d/iptables save
Note that you need to restart Service: Execute service iptabels save and service iptables restart
Port View Method:
vhost]# /etc/init.d/iptables status
Table: filter
Chain INPUT (policy ACCEPT)
num target prot opt source destination
1 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:80
2 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:80
Chain FORWARD (policy ACCEPT)
num target prot opt source destination
Chain OUTPUT (policy ACCEPT)
num target prot opt source destination
The above is the CentOS system vps open 80 port method introduced, many people do not know after opening port 80 View, this article also describes a method vps view port 80.
The Linux logo is a command line tool. The function of this Linux tool is to generate color ANSI cod
Debian system, some packages can not be deleted for some reason, very troublesome when cleaning up t
Samba is a tool that can implement SMB protocol. You can share Linux system software through Samba s
Under Linux system, some txt files are relatively large, and it is very inconvenien
How to set the Grub2 password in Ubuntu
How does Linux add a virtual network card?
Linux operation example summary of the history command
Ubuntu uses the command to refresh the DNS cache. Step
RedHat 6 uses xrdp to log in to Windows Remote Desktop
Detailed explanation of the functions and parameters of the Linux system ar command
How to modify the Tab in the VIM editor to 4 spaces
Linux system startx command function and usage
Linux how to use ControlPersist to speed up SSH connection speed
Linux curl command operation example summary
Turn Windows Notepad into a document management expert
What are the win7 timing shutdown commands? how to use?
Win10 preview version install realtek sound card driver timeout failure solution
How to make/restore Win8.1 Update system image backup
Linux folder file creation, deletion
WinXP disk format conversion tricks
Hard disk background image production
The file printed by Win7 printer is blank and streaked.
Win7 system under the computer actually "insomnia", how to solve?
How does win7 prohibit Adobe Flash Player from automatically updating?