yum -y remove php*
yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm yum install -y http://rpms.remirepo.net/enterprise/remi-release-7.rpm
先列出php的版本号:
yum list php* --showduplicates | sort -r |grep php74
yum -y install php74 php74-php-cli php74-common php74-php-devel php74-php-embedded php74-php-fpm php74-php-gd php74-php-mbstring php74-php-mysqlnd php74-php-opcache php74-php-pdo php74-php-xml php74-php-pecl-redis5
php74 -v
systemctl start php74-php-fpm.service
php74 -m
[root@VM_0_9_centos vhost]# vim love.conf server { listen 80; server_name love.wyasw.com; root /home/deploy/nginx/html/love/; index index.html index.htm index.php; location / { root /home/deploy/nginx/html/love/; #try_files $uri $uri/ /index.php; try_files $uri $uri/ /index.php?$args; } location ~ .*\.(php|php5)?$ { #fastcgi_pass unix:/dev/shm/php-cgi.sock; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; include fastcgi.conf; } location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|flv|ico)$ { expires 30d; } location ~ .*\.(js|css)?$ { expires 7d; } }
[root@VM_0_9_centos love]# cd /home/deploy/nginx/html/love [root@VM_0_9_centos love]# cat info.php <?php phpinfo();
yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm yum install -y http://rpms.remirepo.net/enterprise/remi-release-7.rpm yum -y install php80 php80-php-cli php80-common php80-php-devel php80-php-embedded php80-php-fpm php80-php-gd php80-php-mbstring php80-php-mysqlnd php80-php-opcache php80-php-pdo php80-php-xml php80-php-pecl-redis5
修改日期 | 修改人 | 备注 |
2023-06-26 22:39:06[当前版本] | 文艺范儿 | 内容更新 |
2023-06-26 22:37:06 | 文艺范儿 | 内容更新 |
2023-06-26 22:29:09 | 文艺范儿 | 内容更新 |
2023-06-09 19:49:15 | 文艺范儿 | 格式调整 |
附件类型 | PNG |
|
|