当前位置:网站首页>odoo部署到服务器并配置为服务
odoo部署到服务器并配置为服务
2022-06-22 14:48:00 【晚风拂柳颜】
设置 Odoo 为系统服务
如果你使用的是较近的操作系统,如Debian 8或Ubuntu 16.04,你的启动服务就应该是systemd。要在系统中添加服务,只需创建一个描述服务的文件。我们创建/lib/systemd/system/odoo.service文件并加入如下内容:
[Unit]
Description=Odoo
After=postgresql.service
[Service]
Type=simple
User=odoo
Group=odoo
ExecStart=/home/odoo/odoo-12/odoo-bin -c /etc/odoo/odoo.conf
[Install]
WantedBy=multi-user.target
下一步我们需要使用如下命令来注册这个新服务:
sudo systemctl enable odoo.service
使用如下命令启动该服务:
sudo systemctl start odoo
使用如下命令检查该服务状态:
sudo systemctl status odoo
最后,如需停止服务,请使用如下命令:
sudo systemctl stop odoo边栏推荐
- Research on ICT: domestic databases focus on the ICT market, and Huawei Gauss is expected to become the strongest
- Ask if you want to get the start of sqlserver_ Is there a good way for LSN?
- Discover the number of media new users can insert
- CVE-2022-0847(提权内核漏洞)
- 【山大会议】多人视频通话 WebRTC 工具类搭建
- js中const定义变量及for-of和for-in
- 【山大会议】项目初始化
- Process address space
- 【山大会议】软件性能优化及bug修复
- C language learning -17- function is passed in as a parameter
猜你喜欢

GBASE现身说 “库” 北京金融科技产业联盟创新应用专委会专题培训

Community article | mosn building subset optimization ideas sharing

各位学弟学妹,别再看教材了,时间复杂度看这篇就好了

Trust level of discover

快速玩转CI/CD图形化编排

着力打造网红产品,新捷途X70S焕新上市,8.79万起售

Discourse 新用户可插入媒体的数量

Bridging the gap between open source databases and database services

架构师之路,从「存储选型」起步

【单片机】【让蜂鸣器发声】认识蜂鸣器,让蜂鸣器发出你想要的声音
随机推荐
School enterprise alliance is on the way! Huawei cloud gaussdb has come to universities again
Scala语言学习-06-传名参数、传值参数、传函数参数的区别
Quick sort_ sort
希尔排序的简单理解
DDD understanding of Domain Driven Design
【一起上水硕系列】Day Three - video
【山大会议】私人聊天频道 WebRTC 工具类
New load balancing webclient CRUD
C # implements insertion sorting
普通人怎么在一年内赚到100万?
Scala language learning-06-differences between name passing parameters, value passing parameters and function passing parameters
Rosbag使用命令
坚持更新博客的动力是什么
Applet development - Custom expiration cache
CMake教程系列-00-简介
nvarchar和varchar的区别
The difference between nvarchar and varchar
【VTK】模型旋转平移
信创研究:国产数据库聚焦信创市场,华为Gauss有望成为最强
Gbase "library" special training of innovation and application Committee of Beijing fintech Industry Alliance