apache install

https://www.gnu.org/software/libtool/

./configure --prefix=/usr/local/libtool
make
sudo make install

 


https://apr.apache.org/download.cgi

./configure --prefix=/usr/local/httpd/apr
make
sudo make install

 

https://pkgs.org/download/expat-devel
https://pkgs.org/search/?q=expat
# yum install -y expat-devel
sudo rpm -hiv expat*.rpm

./configure --prefix=/usr/local/httpd/apr-util --with-apr=/usr/local/httpd/apr
make
make install

 

http://www.pcre.org/
https://sourceforge.net/projects/pcre/files/pcre/8.45/
./configure --prefix=/usr/local/pcre
make
sudo make install

./configure --prefix=/usr/local/httpd/apache2 --with-apr=/usr/local/httpd/apr --with-apr-util=/usr/local/httpd/apr-util --with-pcre=/usr/local/pcre --enable-module=so

 


<VirtualHost *:13100>
ServerName beyondiary
ServerAlias beyondiary
ProxyRequests off
<Proxy *>
Order allow,deny
Allow from all
</Proxy>
ProxyPass / http://www.baidu.com
ProxyPassReverse / http://www.baidu.com
</VirtualHost>

 

 

 

 

systemctl status httpd
● httpd.service - SYSV: Apache
Loaded: loaded (/etc/rc.d/init.d/httpd; bad; vendor preset: disabled)
Active: active (running) since Sun 2022-11-27 00:07:06 CST; 2 days ago
Docs: man:systemd-sysv-generator(8)
Process: 1395 ExecStart=/etc/rc.d/init.d/httpd start (code=exited, status=0/SUCCESS)
Tasks: 108
Memory: 11.7M
CGroup: /system.slice/httpd.service
├─ 1413 /usr/local/httpd/apache2/bin/httpd -k start
├─ 1414 /usr/local/httpd/apache2/bin/httpd -k start
├─ 1415 /usr/local/httpd/apache2/bin/httpd -k start
└─24943 /usr/local/httpd/apache2/bin/httpd -k start

posted @ 2022-11-24 23:17  牧之丨  阅读(24)  评论(0编辑  收藏  举报