In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
Apache is the number one Web server software in the world. It can run on almost all widely used computer platforms, and is one of the most popular Web server-side software because of its cross-platform and security.
Download the installation package [root@chao tools] # wget https://mirror.bit.edu.cn/apache/httpd/httpd-2.4.43.tar.gz--2020-05-28 15 root@chao tools 28GV 00muri-https://mirror.bit.edu.cn/apache/httpd/httpd-2.4.43.tar.gz parsing the host mirror.bit.edu.cn (mirror.bit.edu.cn). 202.204.80.77, 219.143.204.117, 2001:da8:204:1205::22 is connecting mirror.bit.edu.cn (mirror.bit.edu.cn) | 202.204.80.77 |: 443. Connected. A HTTP request has been issued Waiting for a response. 200 OK length: 9348230 (8.9m) [application/octet-stream] is being saved to: "httpd-2.4.43.tar.gz" 100% [= >] 9348230 204KB/s usage 51s 2020-05-28 15:28:57 (180KB/s)-saved "httpd-2.4.43.tar.gz" [9348230amp 9348230]) [root@chao tools] # lshttpd-2.4.43. Tar.gz installation dependent component [root@chao yum.repos.d] # yum install apr apr-util apr-devel apr-util-devel pcre pcre-devel loaded plug-in: fastestmirror Langpacks123 | 3.6 kB 00:00:00 Loading mirror speeds from cached hostfile is resolving dependencies-- > checking transactions-> package apr.x86_64.0.1.4.8-3.el7 Will be installed-- > package apr-devel.x86_64.0.1.4.8-3.el7 will be installed-- > package apr-util.x86_64.0.1.5.2-6.el7 will be installed-- > package apr-util-devel.x86_64.0.1.5.2-6.el7 will be installed-- > processing dependency openldap-devel (x86-64) It is required by package apr-util-devel-1.5.2-6.el7.x86_64-- > processing dependency libdb-devel (x86-64), it is required by package apr-util-devel-1.5.2-6.el7.x86_64-- > processing dependency expat-devel (x86-64) It is required by package apr-util-devel-1.5.2-6.el7.x86_64-- > checking transaction-- > package expat-devel.x86_64.0.2.1.0-10.el7_3 will be installed-- > package libdb-devel.x86_64.0.5.3.21-20.el7 will be installed-- > package openldap-devel.x86_64.0.2.4. 44-5.el7 will be installed-- > processing dependency cyrus-sasl-devel (x86-64) It is required by package openldap-devel-2.4.44-5.el7.x86_64-- > checking transaction-> package cyrus-sasl-devel.x86_64.0.2.1.26-21.el7 will be installed-- > resolve dependency complete. Install the compilation environment [root@chao httpd-2.4.43] # yum install-y gcc gcc-cc C++ has loaded the plug-in: fastestmirror, langpacksLoading mirror speeds from cached hostfile has no available package gcc-cc. There is no package C++ available. Resolving dependencies-> checking transactions-> package gcc.x86_64.0.4.8.5-16.el7 will be installed-> processing dependencies cpp = 4.8.5-16.el7, which is required by package gcc-4.8.5-16.el7.x86_64. Compile and install [root@chao tools] # lshttpd-2.4.43.tar.gz [root@chao tools] # tar xf httpd-2.4.43.tar.gz [root@chao tools] # lshttpd-2.4.43 httpd-2.4.43.tar.gz [root@chao tools] # cd httpd-2.4.43/ [root@chao httpd-2.4.43] #. / configure-- prefix=/usr/local/apache2-- enable-rewrite-- enable-sochecking for chosen layout... Apachechecking for working mkdir-p. Yeschecking for grep that handles long lines and-e. / usr/bin/grepchecking for egrep... / usr/bin/grep-Echecking build system type... X86_64-pc-linux-gnuchecking host system type... X86_64-pc-linux-gnuchecking target system type... X86_64-pc-linux-gnuconfigure: configure: Configuring Apache Portable Runtime library...configure: checking for APR... Yes setting CC to "gcc" setting CPP to "gcc-E" setting CFLAGS to "- pthread" setting CPPFLAGS to "- DLINUX-D_REENTRANT-D_GNU_SOURCE" setting LDFLAGS to ".config.status: creating include/ap_config_auto.hconfig.status: executing default commandsconfigure: summary of build options: Server Version: 2.4.43 Install prefix: / usr/local/apache2 C compiler: gcc-std=gnu99 CFLAGS: -pthread CPPFLAGS:-DLINUX-D_REENTRANT-D_GNU_SOURCE LDFLAGS: LIBS: C preprocessor: gcc-E
Execute make
[root@chao httpd-2.4.43] # make
Execute make install
[root@chao httpd-2.4.43] # make install Open Firewall Port [root@chao ~] # firewall-cmd-- zone=public-- add-port=80/tcp-- permanent success [root@chao ~] # firewall-cmd-- reload success enable apache Service [root@chao ~] # / usr/local/apache2/bin/apachectl start Test
Original address of this article: https://www.linuxprobe.com/rhel-apache.html
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.