Linux 个性化安装编译程序

时间:2021-05-17 00:23:26   收藏:0   阅读:29

------------恢复内容开始------------

 1 1> yum install -y gcc make apr-devel apr-util-devel pcre-devel openssl-devel redhat-rpm-config bzip2
 2 
 3 
 4 2> wget https://downloads.apache.org/httpd/httpd-2.4.46.tar.bz2 -P /usr/local/src
 5  
 6 3> cd /usr/local/src
 7 
 8 4> tar xvf httpd-2.4.46.tar.bz2 
 9 
10 5> cd httpd-2.4.46
11 
12 6> ./configure --prefix=/apps/httpd --sysconfdir=/etc/httpd/ --enable-ssl
13 
14 7> make -j 2
15 
16 8> make install
17 
18 9> echo PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/apps/httpd/bin > /etc/profile.d/httpd.sh
19 
20 10> . /etc/profile.d/httpd.sh
21 
22 11> apachectl start

 

------------恢复内容结束------------

原文:https://www.cnblogs.com/noise/p/14774997.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!