20220507 103005
Web Server
-Apache httpd
-MS Win -- IIS (internet information service)
-Apache Tomcat -webserver/application
0. yum install epel-release
yum clean all
yum repolist
yum update -y && reboot
---------------
1. Package httpd
yum clean all
yum repolist
yum info httpd*
yum install httpd
2. Service
systemctl status httpd
systemctl start httpd
systemctl enable httpd
systemctl status httpd
3. configuration:
default web page location -/var/www/html/
cd /var/www/html/
create a page - index.html
add html data..
-------------------
restart the httpd service
systemctl restart httpd
systemctl status httpd
------------------
verify
linux vm:
http://localhost
or
http://127.0.0.1
or
http://linux1
http://172.16.0.100
http://192.168.29.23
win/outside of vm:may be cant access due to firewall
http://172.16.0.100
http://192.168.29.23
--
4. firewall
[root]# firewall-cmd --list-all
public (active)
interfaces: ens33 ens37
services: dhcpv6-client ssh
ports:
protocols:
[root]# firewall-cmd --zone=public --permanent --add-port=80/tcp
success
[root]# firewall-cmd --reload
success
[root]# firewall-cmd --list-all
public (active)
interfaces: ens33 ens37
services: dhcpv6-client ssh
ports: 80/tcp
protocols:
win:
http://172.16.0.100
http://192.168.29.23
---------------------------------
ls -Z index.html
-rw-r--r--. root root unconfined_u:object_r:httpd_sys_content_t:s0 index.html
--------------------
[root@B17linux1 html]# systemctl restart httpd
--
httpd configuration:
less /etc/httpd/conf/httpd.conf
-----------------------------------------------
Смотрите видео (B17) Linux Admin part12 Web Server -Apache httpd онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Latif Shaik 06 Май 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 40 раз и оно понравилось 1 людям.