USharing
开放博客

CentOS LAMP 环境快速搭建

*Install apache-server

#yum install httpd

*Install Mariadb-server

#yum install MariaDB-server MariaDB-client

*Setting MariaDB

#mysql_secure_installation

参考https://www.jianshu.com/p/61e9cbd1b675

*Install php7

#yum install epel-release
#rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
#yum install php70w
#php -v

*Install php extends module 

#yum search php70
#yum install php70w-xml php70w-soap php70w-xmlrpc
#yum install php70w-mbstring php70w-json php70w-gd php70w-mcrypt
#yum install php70w-fpm php70w-mysql php70w-pdo php70w-opcache
#systemctl start php-fpm
#systemctl enable php-fpm
#systemctl restart httpd

https://blog.csdn.net/ITmanba/article/details/76668733

*Download phpmyadmin

//登录官网找新地址

#wget https://files.phpmyadmin.net/phpMyAdmin/4.8.5/phpMyAdmin-4.8.5-all-languages.zip

*Uninstall php low version

#rpm -qa|grep php
#rpm -e <上一步命令显示所有安装包>
#php -v
#systemctl restart httpd

卸载完之后 php -v 将不显示任何php相关软件及说明卸载完成

赞(0) 打赏
未经允许不得转载:USharing » CentOS LAMP 环境快速搭建

觉得文章有用就打赏一下文章作者

微信扫一扫打赏