LAMP快速安装
1.版本介绍
linux:CentOS release 6.6 (Final)
apache: httpd-2.2.31
mysql:mysql-5.5.48
php:php-5.3.27
2.apache安装
rpm -aq httpd
rpm -e --nodeps httpd
yum install -y zlib zlib-devel openssl-devel
mkdir /server/tools -p
cd /server/tools/
wget http://mirrors.sohu.com/apache/httpd-2.2.31.tar.gz
tar zxvf httpd-2.2.31.tar.gz
cd httpd-2.2.31
./configure
–prefix=/application/apache2.2.31
–enable-deflate
–enable-expires
–enable-headers
–enable-modules=most
–enable-so
–with-mem=worker
–enable-rewrite
make
make install
ln -s /application/apache2.2.31/ /application/apache
sed -i ‘s@#ServerName www.example.com:80@ServerName 127.0.0.1:80@g’ /application/apache/conf/httpd.conf
/application/apache/bin/apachectl -t
/application/apache/bin/apachectl start
netstat -lntup|g
2024整理 centos系统 编译LAMP环境安装_centos编译lamp
最新推荐文章于 2025-03-28 09:16:28 发布