Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use CentOS 7.4 to build Apache website Service

2025-04-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

Install the Apache service

For an overview of the detailed configuration and principle of installing Apache, please refer to: CentOS 7.4.Building Apache website service

[root@centos01 ~] # mount / dev/cdrom / mnt/ [root@centos01 ~] # cp / mnt/* / usr/src/ [root@centos01] # mount / dev/cdrom / mnt/ [root@centos01 ~] # rm-rf / etc/yum.repos.d/CentOS-* [root@centos01 ~] # tar zxvf / usr/src/httpd-2.2.17.tar.gz-C / usr/src/ [root@centos01 ~ ] # cd / usr/src/httpd-2.2.17/ [root@centos01 httpd-2.2.17] # / configure-- prefix=/usr/local/httpd-- enable-so-- enable-rewrite-- enable-charset-lite-- enable-cgi [root@centos01 httpd-2.2.17] # make & & make install [root@centos01] # ln-s / usr/local/httpd/bin/* / usr/local/bin/ [root@centos01 ~] # cp / usr/local/httpd/bin/apachectl / etc/init.d/httpd [root@centos01 ~] # chmod + x / etc/init.d/httpd [root@centos01 ~] # vim / etc/init.d/httpd # chkconfig:35 80 # description:apache [root@centos01 ~] # chkconfig-add httpd [root@centos01 ~] # chkconfig-level 35 httpd on [root@centos01] # vim / usr/local/ Httpd/conf/httpd.conf 98 ServerName 192.168.100.10 systemctl start httpd 80 [root@centos01 ~] # systemctl start httpd [root@centos01 ~] # netstat-anptu | grep 80 tcp6 00: 80: * LISTEN 53682/httpd

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report