环境:redhat7.7
Prometheus prometheus-2.37.6
今天在部署Prometheus监控,打算用systemctl命令去管理Prometheus服务时,看日志文件出现下列图片问题
![在这里插入图片描述](https://img-blog.csdnimg.cn/80e86b1339f54eefb58c44021a6c183f.png)
很简单把Prometheus安装包下面的data这几个文件都复制一份到
/var/lib/prometheus/目录下面带属性复制
cp -p /usr/local/prometheus/data/* /var/lib/prometheus/
![在这里插入图片描述](https://img-blog.csdnimg.cn/a68165de68db41f4a09ab7ed9e7ac801.png)
/var/lib/prometheus/目录下面全部授权最大权限然后重新启动下服务i就可以了
chmod 777 *
![在这里插入图片描述](https://img-blog.csdnimg.cn/8ecbadee15f14c729af16597f948d7de.png)