Linux系統上部署ERP系統 odoo

2021-10-08 18:24:20 字數 2405 閱讀 7463

setenforce 0

systemctl stop firewalld

systemctl disable firewalld

sed -i 's/enforcing/disabled/g' /etc/selinux/config

1.centos 7 系統安裝 postgresql 12

[root@localhost ~]# yum install

# 軟體庫安裝成功後,安裝 postgresql:

[root@localhost ~]# yum install postgresql12 postgresql12-server

# 資料庫安裝成功後,初始化資料庫例項、設定開機啟動並啟動 postgresql 資料庫:

[root@localhost ~]# /usr/pgsql-12/bin/postgresql-12-setup initdb

initializing database ... ok

[root@localhost ~]# systemctl enable postgresql-12.service

created symlink from /etc/systemd/system/multi-user.target.wants/postgresql-12.service to /usr/lib/systemd/system/postgresql-12.service.

[root@localhost ~]# systemctl start  postgresql-12.service

# 資料庫啟動成功後,伺服器設定管理密碼:

[root@localhost ~]# su - postgres

-bash-4.2$ psql

psql (12.3)

輸入 "help" 來獲取幫助資訊.

# 注意odoo使用者名稱用雙引號

postgres=# create user "odoo13" with password 'odoo13' createdb; 

postgres=# \q

-bash-4.2$ exit

登出[root@localhost ~]# vim /var/lib/pgsql/12/data/pg_hba.conf

# 修改配置檔案,按照如下格式

local all all trust

host all 127.0.0.1/32 trust

[root@localhost ~]# systemctl restart  postgresql-12.service

[root@localhost ~]# systemctl status  postgresql-12.service

[root@localhost ~]#wget 

[root@localhost ~]#yum localinstall odoo_13.0.latest.noarch.rpm

vim /etc/odoo/odoo.conf

# 修改配置檔案中的使用者和密碼

[options]

; this is the password that allows database operations:

; admin_passwd = admin

db_host = false

db_port = false

db_user = odoo13

db_password = odoo13

addons_path = /usr/lib/python2.7/site-packages/odoo/addons

# 防火牆新增8069埠

firewall-cmd --zone=public --add-port=8069/tcp --permanent

firewall-cmd --reload

# 檢視是否生效

firewall-cmd --list-all

# enable設定odoo開機啟動 

systemctl enable odoo

systemctl restart odoo

systemctl status odoo

[root@localhost ~]#yum install wkhtmltopdf

# 安裝中文字型 

linux系統上部署nfs服務

環境說明 server 192.168.0.65 client 192.168.0.68 os centos 7.2 需求 多台主機之間檔案共享 一,首先在server端安裝nfs,rpcbind 服務 1.檢測服務是否已安裝。rpm qa grep nfs rpm qa grep rpcbind ...

在Linux系統上部署服務後訪問不到

今天在linux系統上部署專案的時候發現乙個問題,服務啟動沒有報錯,但是就是訪問不到。之後發現是linux系統的防火牆沒有關閉。用 centos7 將防火牆關閉後服務就可以正常訪問了 centos 7.0預設使用的是firewall作為防火牆 檢視防火牆狀態 firewall cmd state 停...

運維 系統 在debian系統上部署vnc

系統 debian 10.7 平台 amd64 桌面環境 gnome 使用tigervnc作為vncserver端 sudo apt update sudo apt install tigervnc common tigervnc standalone server tigervnc scrapin...