By admin, 16 十二月, 2022

Nginx

Docroot is: /usr/local/var/www

 

The default port has been set in /usr/local/etc/nginx/nginx.conf to 8080 so that

nginx can run without sudo.

 

nginx will load all files in /usr/local/etc/nginx/servers/.

 

To restart nginx after an upgrade:

  brew services restart nginx

Or, if you don't want/need a background service you can just run:

  /usr/local/opt/nginx/bin/nginx -g daemon off;

标签

By admin, 30 十一月, 2022

html {
    -webkit-filter: grayscale(100%) !important;
    -moz-filter: grayscale(100%) !important;
    -ms-filter: grayscale(100%) !important;
    -o-filter: grayscale(100%) !important;
    filter: grayscale(100%) !important;
    filter: progid:DXImageTransform.Microsoft.BasicImage(grayscale=1) !important;
}

标签

By admin, 17 十一月, 2022

命令行下ulimit -aS可查看最大打开文件数。

ulimit -n 65535可设置最大打开文件数。

下面步骤可调大Apache里php进程的最大打开文件数(默认可能是1024):

修改/usr/lib/systemd/system/httpd.service里的LimitNOFILE=65535,

sudo systemctl daemon-reload

sudo service httpd restart

最新评论