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
-----------------------------------------------
Watch video (B17) Linux Admin part12 Web Server -Apache httpd online without registration, duration hours minute second in high quality. This video was added by user Latif Shaik 06 May 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 40 once and liked it 1 people.