進度條

用 homebrew 安裝 nginx 與執行

更新日期:

brew install nginx 

 

// 啟動nginx ,單一指令而已

nignx

 

// 這會在開機的時候自動啟動 nginx

brew services start nginx

 

sudo vim /usr/local/etc/nginx/nginx.conf

 

server {

        listen       8080;

        server_name  localhost;

        root '你的路徑';

        index index.php;

 

        location / {

                try_files $uri $uri/ /index.php?$query_string;

        }

        location ~ \.php$ {

            fastcgi_pass   127.0.0.1:9000;

            fastcgi_index  index.php;

            include fastcgi.conf;

        }

 

 

sudo vim /usr/local/etc/php/7.4/php-fpm.d/www.conf

 

user = staff

group = staff