linux配置erp访问端口_如何在Linux系统上部署ERP系统

[root@wanghongchao ~]# git clone --depth=1 https://github.com/odoo/odoo.git /odoo/odoo

正克隆到 '/odoo/odoo'...

remote: Enumerating objects: 27521, done.

remote: Counting objects: 100% (27521/27521), done.

remote: Compressing objects: 100% (23267/23267), done.

remote: Total 27521 (delta 8099), reused 10279 (delta 3371), pack-reused 0

接收对象中: 100% (27521/27521), 118.08 MiB | 34.00 KiB/s, done.

处理 delta 中: 100% (8099/8099), done.

Checking out files: 100% (24585/24585), done.

[root@wanghongchao ~]# ll /odoo/odoo/

总用量 104

drwxr-xr-x. 332 root root 12288 4月 25 14:43 addons

-rw-r--r--. 1 root root 803 4月 25 14:43 CONTRIBUTING.md

-rw-r--r--. 1 root root 433 4月 25 14:43 COPYRIGHT

drwxr-xr-x. 3 root root 232 4月 25 14:43 debian

drwxr-xr-x. 10 root root 4096 4月 25 14:43 doc

-rw-r--r--. 1 root root 43529 4月 25 14:43 LICENSE

-rw-r--r--. 1 root root 1491 4月 25 14:43 MANIFEST.in

drwxr-xr-x. 11 root root 4096 4月 25 14:43 odoo

-rwxr-xr-x. 1 root root 180 4月 25 14:43 odoo-bin

-rw-r--r--. 1 root root 2113 4月 25 14:43 README.md

-rw-r--r--. 1 root root 1290 4月 25 14:43 requirements.txt

-rw-r--r--. 1 root root 1734 4月 25 14:43 SECURITY.md

drwxr-xr-x. 4 root root 160 4月 25 14:43 setup

-rw-r--r--. 1 root root 876 4月 25 14:43 setup.cfg

-rw-r--r--. 1 root root 1698 4月 25 14:43 setup.py

[root@wanghongchao ~]# cd /odoo/odoo/

[root@wanghongchao odoo]# pip3.6 install -r /odoo/odoo/requirements.txt[root@wanghongchao odoo]# pip3 install --upgrade pipLooking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple

Requirement already up-to-date: pip in /usr/local/lib/python3.6/site-packages (20.0.2)

[root@wanghongchao odoo]# pip3 install -r /odoo/odoo/requirements.txt

[root@wanghongchao ~]# su - odoo -c "/odoo/odoo/odoo-bin --addons-path=/odoo/odoo/addons -s --stop-after-init"

2020-04-25 07:37:34,926 46497 INFO ? odoo: Odoo version 13.0

2020-04-25 07:37:34,927 46497 INFO ? odoo: Using configuration file at /odoo/.odoorc

2020-04-25 07:37:34,927 46497 INFO ? odoo: addons paths: ['/odoo/odoo/odoo/addons', '/odoo/.local/share/Odoo/addons/13.0', '/odoo/odoo/addons']

2020-04-25 07:37:34,927 46497 INFO ? odoo: database: default@default:default

2020-04-25 07:37:35,096 46497 INFO ? odoo.addons.base.models.ir_actions_report: Will use the Wkhtmltopdf binary at /usr/local/bin/wkhtmltopdf

2020-04-25 07:37:35,185 46497 INFO ? odoo.service.server: Initiating shutdown

2020-04-25 07:37:35,185 46497 INFO ? odoo.service.server: Hit CTRL-C again or send a second signal to force the shutdown.

[root@wanghongchao odoo]# sed -i "s,^\(logfile = \).*,\1"/var/log/odoo/odoo-server.log"," /etc/odoo/odoo.conf[root@wanghongchao odoo]# ln -s /odoo/odoo/odoo-bin /usr/bin/odoo[root@wanghongchao odoo]# firewall-cmd --permanent --add-port=8069/tcp --zone=public[root@wanghongchao odoo]# firewall-cmd --reload## 查看版本[root@wanghongchao ~]# odoo --version

Running as user 'root' is a security risk.

Odoo Server 13.0

[root@wanghongchao ~]# pip install psycopg2-binary

Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple

Collecting psycopg2-binary

Downloading https://pypi.tuna.tsinghua.edu.cn/packages/d3/8a/a7ed55c2c55bd4f5844d72734fedc0cef8a74518a0a19105a21c15628f1e/psycopg2_binary-2.8.5-cp36-cp36m-manylinux1_x86_64.whl (2.9 MB)

|████████████████████████████████| 2.9 MB 363 kB/s

Installing collected packages: psycopg2-binary

Successfully installed psycopg2-binary-2.8.5

## 查看odoo端口[root@wanghongchao ~]# netstat -antp|grep :8069

tcp 0 0 0.0.0.0:8069 0.0.0.0:* LISTEN 46524/python3

[root@wanghongchao ~]# ps -aux | grep /usr/bin/odoo

root 46524 0.4 6.8 525172 68612 pts/0 Sl+ 15:38 0:00 python3 /usr/bin/odoo

root 46590 0.0 0.0 112724 992 pts/1 S+ 15:41 0:00 grep --color=auto /usr/bin/odoo

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值