
获得徽章 0
- unable to access 'https://**********': GnuTLS recv error (-110): The TLS connection was non-properly terminated.
关闭ssl验证:
apt-get install gnutls-bin
git config --global http.sslVerify false
git config --global http.postBuffer 1048576000展开评论点赞 - 运行一个rectjs项目,提示Error: ENOSPC: System limit for number of file watchers reached, watch
意思是超过了系统对文件观察者数量的限制,临时调整一下数量即可,不建议设置参加
root@abc:/opt/# cat /proc/sys/fs/inotify/max_user_watches
8291
root@abc:/opt/# sudo sysctl fs.inotify.max_user_watches=524288
fs.inotify.max_user_watches = 524288
root@abc:/opt/# sudo sysctl -p
vm.swappiness = 0
kernel.sysrq = 1
net.ipv4.neigh.default.gc_stale_time = 120
net.ipv4.conf.all.rp_filter = 0
net.ipv4.conf.default.rp_filter = 0
net.ipv4.conf.default.arp_announce = 2
net.ipv4.conf.lo.arp_announce = 2
net.ipv4.conf.all.arp_announce = 2
net.ipv4.tcp_max_tw_buckets = 5000
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_max_syn_backlog = 1024
net.ipv4.tcp_synack_retries = 2
net.ipv4.tcp_slow_start_after_idle = 0
fs.file-max = 65535展开评论点赞 - 查看php-fpm总进程数及内存占用情况
ps -ylC php-fpm --sort:rss
php-fpm重启方法
1、关闭php-fpm:pkill php-fpm
2、启动php-fpm: /usr/local/php/sbin/php-fpm,ubuntu默认是安装到这个位置展开赞过11 - vscode快速代理配置
1、command+, 或 ctrl+, 打开设置;
2、搜索 'http:proxy',即可检索到代理配置的 Http:Proxy;
3、输入你的自己的代理地址,即可
4、这样以后下载任何插件或包不再卡壳赞过评论1 - 现象:graylog无法采集任何数据
graylog提示:{"type":"cluster_block_exception","reason":"blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];"}
解决:这是因为es变成了只读模式,当硬盘的空余空间少于5%时,自动变成这个模式。
解放方式
1、扩充硬盘;
2、减少graylog缓存的日志周期,进入es所在的机器或docker实例(docker exec -it root_elasticsearch_1 /bin/bash),允许curl -XPUT -H "Content-Type: application/json" http://localhost:9200/_all/_settings -d '{"index.blocks.read_only_allow_delete": "false"}'展开评论点赞 - “ The argument type ‘String’ can’t be assigned to the parameter type ‘Uri’. Flutter”
Uri.parse(api_url)4点赞