sudo lsof -P -i TCP -s TCP:LISTEN
参考:https://www.micahsmith.com/blog/2019/09/find-ports-in-use-on-macos/
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;
源码:https://github.com/festvox/flite
使用文档:http://www.festvox.org/flite/doc/flite_7.html#C-example
示例代码:
#include "flite.h"
cst_voice *register_cmu_us_kal(const char *voxdir); // 注意这一行和官方文档不同,官方文档的会报错。int main(int argc, char **argv)
{
cst_voice *v;
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;
}
Odilia is a new screen reader for the Linux desktop. It’s written in Rust, for maximum performance and stability.
命令行下ulimit -aS可查看最大打开文件数。
ulimit -n 65535可设置最大打开文件数。
下面步骤可调大Apache里php进程的最大打开文件数(默认可能是1024):
修改/usr/lib/systemd/system/httpd.service里的LimitNOFILE=65535,
sudo systemctl daemon-reloadsudo service httpd restart
安装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
热门内容
最新内容
- 1 day 17 hours ago
- 3 days 19 hours ago
- 6 days 19 hours ago
- 1 week 2 days ago
- 2 weeks 3 days ago
- 2 weeks 6 days ago
- 2 weeks 6 days ago
- 2 weeks 6 days ago
- 2 weeks 6 days ago
- 3 weeks ago
最新评论