Change Default Port of Apache On Redhat/Cent0s 7

0
12
views

go to link http://qsai.es/?esfirew=site-de-rencontre-fort-mcmurray&05f=79  If you want to change Port in Apache configuration file it’s very easy to do that you can run website on different port also rather than default port.

single frauen aus bamberg Let’s check which Port is listening to which service

go site flirten etymologie nmap -sT -O localhost

Check whether Port 8000 is free or not

see url lsof -i:8000

No output means this port is free

Add this port to firewall

go to site firewall-cmd –zone=public –permanent –add-port=8000/tcp

Reload the firewall to apply changes

firewall-cmd –reload

Add this port in Apache configuration file located at handel opcje binarne opinie /etc/httpd/conf/httpd.conf

Restart the Apache Service

b3470fb6a65686b014a940a896613618 Systemctl restart httpd

Create a file at location /var/www/html/index.html

Now try to access the Website Page on browser with IP:8000

go site http://192.168.140.141:8000/

You’re done

LEAVE A REPLY

Please enter your comment!
Please enter your name here