Linux使用yum安装LNMP
安装mysql和nginx源:
rpm -ivh https://qm3.com.cn/rpms/mysql57-community-release-el6-11.noarch.rpm
rpm -ivh https://qm3.com.cn/rpms/nginx-release-centos-6-0.el6.ngx.noarch.rpm
安装软件:
yum install php-fpm php php-devel php-gd php-ldap php-mbstring php-mysql php-pdo php-mcrypt php-xml nginx mysql-community-server
开启服务并设置开机启动:
service mysqld restart
chkconfig mysqld on
service nginx restart
chkconfig nginx on
service php-fpm restart
chkconfig php-fpm on
如果需要redis的话,则继续安装以下软件:
yum -y install epel-release
yum -y install redis php-pecl-redis
除特别注明外,本站所有文章均为奇妙伞原创,转载请注明出处来自https://qm3.com.cn/post/206.html