zoukankan      html  css  js  c++  java
  • [PHP] Ubuntu快速安装起PHP7.4

    先安装一下这个命令 add-apt-repository
    apt-get install software-properties-common

    添加第三方源:
    add-apt-repository ppa:ondrej/php
    apt-get update

    安装php:
    apt-get install php7.4 php7.4-fpm php7.4-mysql php7.4-gd php7.4-mbstring
    service php7.4-fpm start
    php -v

    nginx的配置文件和原来一样

    server {
        listen       80;
        server_name  localhost;
        access_log  /var/log/nginx/default.access.log  main;
        error_log /var/log/nginx/default.error.log;
        root   /var/www/html;
        location / {
            index  index.html index.htm;
        }
        location ~ .php$ {
            fastcgi_pass   127.0.0.1:9000;
            fastcgi_index  index.php;
            fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
            include        fastcgi_params;
        }
    }

  • 相关阅读:
    找水王续
    找水王续
    本周学习进度
    Node.js 学习
    在Linux机器上安装MySQL
    ZStack串口通信
    Java编写串口程序
    ServerSocket
    ZigBee毕设
    ZigBee相关网站链接
  • 原文地址:https://www.cnblogs.com/taoshihan/p/11795605.html
Copyright © 2011-2022 走看看