遇到过一次CPU和内存占用过高的问题,后面统一设置所有容器的内存和CPU占用,来杜绝宿主卡死的问题: docker container update --memory="4g" --memory-swap="4g" --cpus=".5" $(docker container ls -q) 修改4g为其他数值即可,.5代表cpu使用率最高是50%
遇到过一次CPU和内存占用过高的问题,后面统一设置所有容器的内存和CPU占用,来杜绝宿主卡死的问题: docker container update --memory="4g" --memory-swap="4g" --cpus=".5" $(docker container ls -q) 修改4g为其他数值即可,.5代表cpu使用率最高是50%
OpenWRT VRRP协议配置: OpenWRT上需要安装keepalived,安装命令: opkg update & opkg install keepalived 然后,修改配置文件 /etc/keepalived/keepalived.conf,内容如下(没有就自行新建): global_defs { router_id LVS_DEVEL } vrrp_instance VI_1 { interface br-lan #指定连接ROS的接口,默认为LAN接口的桥接 state BACKUP #默认…
以下代码在shell里面执行后,然后执行apt -y update 中国大陆 cat <<EOF > /etc/apt/sources.list deb http://ftp.cn.debian.org/debian/ bullseye main non-free contrib deb-src http://ftp.cn.debian.org/debian/ bullseye main non-free contrib deb http://ftp.cn.debian.org/debian-se…
# Docker中国 mirror # export REGISTRY_MIRROR="https://registry.docker-cn.com" # 腾讯云 docker hub mirror # export REGISTRY_MIRROR="https://mirror.ccs.tencentyun.com" # 华为云镜像 # export REGISTRY_MIRROR="https://05f073ad3c0010ea0f4bc00b7105ec20…
在宝塔面板安装nginx后,创建站点和启用nginx都会提示报错/www/server/nginx/sbin/nginx: error while loading shared libraries: libluajit-5.1.so.2: cannot open shared object file: No such file or directory。 终端中一行命令解决: yum -y install lua*
官网:OpenEthereum github 文档: 运行参数 docker cli docker run -tid --name parity \ -v /www/openethereum/chaindata/:/chaindata/ \ -p 7788:8545 \ -p 7799:8546 \ -p 30303:30303 \ -p 30303:30303/udp \ openethereum/openethereum:latest --base-path /chaindata/ 或者 docker-comp…
Proxmox VE登陆的时候提示没有有效的订阅 You do not have a valid subscription for this server. Please visit 。。。 由于使用的proxmox是免费版社区版的,所以每次都提示这个没有有效的订阅挺烦的! 网上搜索一把,基本上都是针对6.0或者之前的版本做的修改,已经不适用于7.0,经过自己的摸索已经 可以完全去掉该提示了,有需要的小朋友拿走不谢: 第一步: 第二步: enjoy !!!
version: '3' services: app: image: 'jc21/nginx-proxy-manager:latest' restart: unless-stopped ports: - '80:80' - '81:81' - '443:443' volumes: - /root/ng/data:/data - /root/ng/letsencrypt:/etc/letsencrypt network…
创建环境变量文件 在docker-compose.yml所在目录下创建.env,并键入以下内容 ELK_VERSION=7.14.2 docker-compose.yml version: "3" services: elasticsearch: image: elasticsearch:${ELK_VERSION} container_name: elasticsearch-${ELK_VERSION} environment: - TZ=Asia/Shanghai - discovery.t…
编辑~/.vimrc,没有就创建一个 set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936 set termencoding=utf-8 set encoding=utf-8 保存,退出,重新打开即可显示中文。