企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
## 1、etcd 优化 ``` rm -rf /var/lib/etcd/default.etcd //删除缓存 ``` #### 编辑 `vim /usr/lib/systemd/system/etcd.service` 文件在 `/usr/bin/etcd` 后面加入参数 `--auto-compaction-retention '1' --quota-backend-bytes '8589934592'` 注意空格 ``` [Unit] Description=Etcd Server After=network.target After=network-online.target Wants=network-online.target [Service] Type=notify WorkingDirectory=/var/lib/etcd/ EnvironmentFile=-/etc/etcd/etcd.conf User=etcd # set GOMAXPROCS to number of processors ExecStart=/bin/bash -c "GOMAXPROCS=$(nproc) /usr/bin/etcd --auto-compaction-retention '1' --quota-backend-bytes '8589934592' --name=\"${ETCD_NAME}\" --data-dir=\"${ETCD_DATA_DIR}\" --listen-client-urls=\"${ETCD_LISTEN_CLIENT_URLS}\"" Restart=on-failure LimitNOFILE=65536 [Install] WantedBy=multi-user.target ``` #### 然后执行 `systemctl daemon-reload` 输入 `y` 重新加载服务文件 最后执行下面命令 ``` systemctl restart etcd systemctl restart syncsite systemctl restart bookcms ``` ## 2、前台配置文件同步不了常见问题 删除etcd缓存重启etcd服务和 bookcms 服务 ``` rm -rf /var/lib/etcd/default.etcd systemctl restart etcd systemctl restart bookcms ``` ## 3、添加实时检测BookCMS 相关服务脚本 以下命令依次执行执行完毕后重启服务器即可 ``` wget -O /www/BookCMS/check_bookcms.sh http://bookcms-hongkong.oss-cn-hongkong.aliyuncs.com/bookcms/check_bookcms.sh --no-check-certificate chmod +x /www/BookCMS/check_bookcms.sh echo "/www/BookCMS/check_bookcms.sh" >> /etc/rc.d/rc.local chmod +x /etc/rc.d/rc.local reboot ``` ## 4、出现更新模板提示错误的请按照以下目录 删除目录内的文件即可 ![](https://img.kancloud.cn/e5/9b/e59b9f8725642ecfcd66c68a3e44894c_415x225.png) ![](https://img.kancloud.cn/07/d9/07d9947ae915fa2c5d15cab00e78b78f_1902x996.png)