centos 6.5 部署 apache
yum install httpd -y
vim /etc/httpd/conf/httpd.conf
静态文件 /var/www/html
http://192.168.2.240:9089/basic/login.html
cgi文件 /var/www/cgi-bin
http://192.168.2.240:9089/cgi-bin/first.cgi
service httpd start
chkconfig httpd on
ubuntu 16.0.4 部署 apache2
apt --purge remove apache2-bin apache2-data apache2-utils apache2
apt-get install apache2
vim /etc/apache2/apache2.conf
vim /etc/apache2/ports.conf
ln -s /etc/apache2/mods-available/cgid.conf /etc/apache2/mods-enabled/cgid.conf
ln -s /etc/apache2/mods-available/cgid.load /etc/apache2/mods-enabled/cgid.load
ln -s /etc/apache2/mods-available/cgi.load /etc/apache2/mods-enabled/cgi.load
vim /etc/apache2/conf-enabled/serve-cgi-bin.conf
/etc/init.d/apache2 restart