Wednesday, January 18, 2017

Install Apache on Centos7

[root@hpcentos wb003c]# yum install httpd
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirrors.cat.pdx.edu
 * epel: linux.mirrors.es.net
 * extras: mirror.pac-12.org
 * updates: mirror.supremebytes.com
Package httpd-2.4.6-45.el7.centos.x86_64 already installed and latest version
Nothing to do

[root@hpcentos wb003c]# systemctl start httpd
[root@hpcentos wb003c]# systemctl enable httpd
Created symlink from /etc/systemd/system/multi-user.target.wants/httpd.service to /usr/lib/systemd/system/httpd.service.

[root@hpcentos wb003c]# firewall-cmd --add-service=http --permanent
success

[root@hpcentos wb003c]# firewall-cmd --reload
success

[root@hpcentos wb003c]#

No comments:

Post a Comment

Followers

About Me

Torrance, CA, United States