重启服务
/etc/init.d/postgresql restart
sudo service postgresql stop
sudo service postgresql start
sudo service odoo16 stop
sudo service odoo16 start
sudo systemctl stop nginx
sudo systemctl start nginx
##设置开机自启动
sudo systemctl enable postgresql
登陆pg
sudo -u postgres psql
在psql界面中,运行\du命令, 显示所有用户
删除postgres用户的密码
sudo passwd -d postgres
# 设置postgres用户的密码
sudo -u postgres passwd
python /opt/odoo/odoo16/odoo-bin -c /opt/odoo/odoo16/odoo.conf
数据库信息:
db_host = 127.0.0.1
db_name = odooshequ
db_port = 5432
db_user = odoo16
db_password =!