系统相关
首页 > 系统相关> > Linux 个性化安装编译程序

Linux 个性化安装编译程序

作者:互联网

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

 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

 

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

标签:bin,httpd,devel,------------,usr,Linux,local,编译程序,个性化
来源: https://www.cnblogs.com/noise/p/14774997.html