分享一个命令模式的web环境搭建教程,简单的很。在centos 6.x版本下安装的
yum install yum-utils -y
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
yum install http://rpms.remirepo.net/enterprise/remi-release-6.rpm
curl -sS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash
yum makecache
yum-config-manager --enable remi remi-php73
yum install php php-bcmath php-cli php-common php-dba php-devel php-embedded php-enchant php-pecl-mcrypt php-pecl-imagick php-pecl-libsodium php-fpm php-gd php-intl php-ldap php-mbstring php-mysql php-mysqlnd php-odbc php-pdo php-pear php-pecl-memcache php-pgsql php-process php-pspell php-recode php-snmp php-soap php-xml php-xmlrpc php-opcache mod_ssl sendmail unzip crontabs MariaDB-server MariaDB-client
service httpd restart && service mysql restart