RHEL 8 搭建 Nginx Web 服务
RHEL 8 搭建 Nginx Web 服务,搭建前请把 yum 源配好。
环境
Red Hat EnterpriseLinuxrelease 8.0
VMware Workstation Pro 14
搭建步骤
[root@localhost~]#systemctlstophttpd#把 httpd停掉,防止它影响 Ngin
x
[root@localhost~]#yuminstall-ynginx
[root@localhost~]#systemctlstartnginx
[root@localhost~]#iptables-F
[root@localhost~]#systemctlstopfirewalld
[root@localhost~]#systemctldisablefirewalld
[root@localhost~]#setenforce0
[root@localhost~]#ifconfig
ens33:flags=4163<UP,BROADCAST,RUNNING,MULTICAST>mtu1500
inet192.168.10.118netmask255.255.255.0broadcast192.168.10.255
inet6fe80::e09a:769b:83f0:8efaprefixlen64scopeid0x20
ether00:50:56:34:0d:74txqueuelen1000(Ethernet)
RXpackets2908bytes1777392(1.6MiB)
RXerrors0dropped0overruns0frame0
TXpackets1800bytes244006(238.2KiB)
TXerrors0dropped0overruns0carrier0collisions0
lo:flags=73<UP,LOOPBACK,RUNNING>mtu65536
inet127.0.0.1netmask255.0.0.0
inet6::1prefixlen128scopeid0x10
looptxqueuelen1000(LocalLoopback)
RXpackets0bytes0(0.0B)
RXerrors0dropped0overruns0frame0
TXpackets0bytes0(0.0B)
TXerrors0dropped0overruns0carrier0collisions0
virbr0:flags=4099<UP,BROADCAST,MULTICAST>mtu1500
评论0
最新资源