VMware virtual machine in Centos7 after installing NGINX is not native access solution
To install Nginx on Linux, see: Linux Centos7 to install Nginx
The firewall of CentOS is changed to “iptables”, which is no longer called “iptables”. The firewall of CentOS is changed to “iptables”, which is no longer called “iptables”. The firewall of CentOS is changed to “iptables”.
firewall-cmd --zone=public --add-port=80/tcp --permanent
Command meaning:
— zone # scope
— add-port=80/ TCP # Add port in format: port/communication protocol
— permanent # is permanent and will fail if restarted without this parameter
Restart firewall:
systemctl stop firewalld.service
systemctl start firewalld.service
Refresh the access again, as shown in the figure below:
Read More:
- The solution of centos7’s inaccessibility after installing nginx
- Solution to redis error in CentOS of idea connected virtual machine
- VMware virtual machine prompt: locking file failed, unable to open the disk solution
- Solve the problem that the virtual machine can’t be opened? Tips on VMware Workstation cannot connect to the virtual machine
- linux VMware Unable to change virtual machine power state: Internal error
- VMware virtual machine installation of vmware tools, VMware shared folder location
- How to solve the problem of “unable to open / dev / vmmon: broken pipeline” when running VMware virtual machine?
- A solution to the default invalid host only mode of CentOS virtual machine in VirtualBox
- Ubuntu xshell cannot connect to VMware virtual machine solution
- Solution to restart without showing eth0 connection after installing virtual machine
- Solution — unable to install vmware tools on windows2012r2 in VMWare
- Record of solutions to internal error when VMware starts virtual machine
- Putty remote login VMware virtual machine Linux
- Solution of Prophet error reporting when installing R package in Kubuntu virtual machine environment
- VMware imports an external virtual machine and displays system error: (unknown exception). Wrong solution
- Centos7’s solution to ping in VMWare
- How to Fix VMware Taking ownership of this virtual machine failed
- Quickly solve the problem of Vmware virtual machine “\\.\Global\vmx86”: the system cannot find the specified file
- Nat mode of network configuration for VMware virtual machine
- Solution to ebios read error: error 0x31 when installing snow leopard on virtual machine