Apache role
##### Apache uses synchronous blocking mode, high stability
###### nginx: yibu non-blocking mode, faster than Apache's
view over Hypertext Transfer Protocol provides software: curl -I ..
Apache installation
Apache :( firewall is enabled, the service itself is set)
If Internet connectivity in 7 8, so that as shown in FIG Apache service page of representation, you can enable
Basic information of Apache
Change in the main configuration file port information, restart the service, and then connect 7, the connection fails
##
##
192.168.1.10 (rhel8 of ip): 8080 can not be accessed
##
##
##
##
inaccessible in rhel7 8, viewing ports need to be set in the firewall, the operation as shown below, the firewall set in the port is not changed 8080
##
access success
The basic configuration of Apache
参考上条实验
8080 与6666的本质区别在于 在查看服务端口的时候默认没有6666
selinux开启的时候,无法重启,警告模式,可以重启
1.设定selinux默认使用方式:使Apache可以使用6666
2.semange port -l | grep http 查看服务可以使用的端口,
3.semange port -a -t http_port_t -p port tcp 6666 使服务可以使用6666端口
4.则服务在selinux开启的模式下可以重启
The default file release
index.html file
westos.html file
Is written as shown below in the configuration file, the default access westos.html file (if not the first file, the second file access)
Complement:
File directory shall be shown below
##
##