ProxmoxVE补漏 作者: Fmq 时间: 2018-12-10 分类: 随手笔记 缝缝补补又三年 #### 1.修改源 LXC的debian的源太慢,换! 编辑`/etc/apt/sources.list` ```bash deb http://mirrors.163.com/debian/ stretch main non-free contrib deb http://mirrors.163.com/debian/ stretch-updates main non-free contrib deb http://mirrors.163.com/debian/ stretch-backports main non-free contrib deb-src http://mirrors.163.com/debian/ stretch main non-free contrib deb-src http://mirrors.163.com/debian/ stretch-updates main non-free contrib deb-src http://mirrors.163.com/debian/ stretch-backports main non-free contrib deb http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib deb-src http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib ``` #### 2.修改时区 用命令修改时区 `dpkg-reconfigure tzdata` #### 3.修改编码 编辑`/etc/locale.gen` 取消 `en_US.UTF-8 UTF-8` 的注释,运行命令 ```bash locale-gen en_US.UTF-8 update-locale en_US.UTF-8 ``` #### 4.给宿主机加上NTP同步 国内时间同步不了,后台日志一直报错,很烦。 安装NTP服务 ```bash apt-get install ntpdate ``` 编辑`/etc/default/ntpdate` 添加NTP服务器 ```bash NTPSERVERS="time1.cloud.tencent.com time2.cloud.tencent.com time3.cloud.tencent.com time4.cloud.tencent.com time5.cloud.tencent.com" ``` 运行`ntpdate-debian` 编辑`/etc/systemd/timesyncd.conf` ```bash NTP=time1.cloud.tencent.com time2.cloud.tencent.com time3.cloud.tencent.com time4.cloud.tencent.com time5.cloud.tencent.com ``` #### 5.解决滥用日志 运行命令`systemctl edit --full pvesr.timer` 修改内容 ```bash OnCalendar=Monthly ``` 运行命令`systemctl daemon-reload` #### 6.关掉提示 ```bash sed -i.bak "s/data.status !== 'Active'/false/g" /usr/share/pve-manager/js/pvemanagerlib.js ``` 记得CTRL+F5 标签: proxmoxve