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

By admin, 14 十一月, 2022

安装vsftpd的命令如下:

sudo apt install vsftpd

默认配置下,可以登录Ubuntu系统内用户 。

如果系统允许匿名下载,可以编辑/etc/vsftpd.conf修改如下配置:

 

anonymous_enable=YES

anon_root=/var/ftp

手动创建匿名用户根目录:

sudo mkdir /var/ftp

去掉FTP匿名用户根目录写权限(不然不允许登录):

sudo chmod a-w /var/ftp

放一个测试文件:

sudo touch /var/ftp/test

重启服务:

sudo service vsftpd restart

标签

最新评论