MongoDB在CentOS7上的systemctl服务配

[Unit]
Description=MongoDB
After=network.target remote-fs.target nss-lookup.target
 
[Service]
Type=forking
PIDFile=/mongodb_data/data/mongod.lock
ExecStart=/usr/local/mongodb/mongod --dbpath=/mongodb_data/data/ --logpath=/mongodb_data/log/mongodb.log --logappend --fork
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s QUIT $MAINPID
PrivateTmp=true
 
[Install]
WantedBy=multi-user.target  

创新互联公司专注于吉安企业网站建设,成都响应式网站建设,商城网站定制开发。吉安网站建设公司,为吉安等地区提供建站服务。全流程按需网站建设,专业设计,全程项目跟踪,创新互联公司专业和态度为您提供的服务

               


名称栏目:MongoDB在CentOS7上的systemctl服务配
分享路径:http://lszwz.com/article/ighdhj.html

其他资讯

售后响应及时

7×24小时客服热线

数据备份

更安全、更高效、更稳定

价格公道精准

项目经理精准报价不弄虚作假

合作无风险

重合同讲信誉,无效全额退款