yum方式安装lamp环境:
yum -y update
yum -y install gcc gcc-c++ authconf automake libtool libevent libevent-devel
yum -y install ncurse nucrse-devel gd gd-deevel freetype freetype-devel fontconfig fontconfig-devel libjpeg libjpeg-devel zlib zlib-devel pcre pcre-devel
yum -y install libmcrypt mhash
yum -y install mysql mysql-server mysql-devel
yum -y install httpd httpd-devel
yum -y install php*
设置开机启动
chkconfig httpd on
chkconfig mysqld on
apache配置文件所在位置:
ls -l /etc/httpd/
php配置文件所在位置:
ls -l /etc/php.ini
原创内容转载请保留出处GEEK笔记(https://www.geekapp.cn/)。