gpt4 book ai didi

openerp - 从 Ubuntu 14.04 桌面删除 Odoo 9?

转载 作者:行者123 更新时间:2023-12-04 00:45:05 25 4
gpt4 key购买 nike

关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。












想改进这个问题?将问题更新为 on-topic对于堆栈溢出。

6年前关闭。




Improve this question




我想卸载 Odoo 9 并在我的 linux 系统中重新安装。谁能帮帮我吗?

最佳答案

只需按照以下步骤

service odoo-server stop

删除配置文件
rm -f /etc/odoo-server.conf
rm -f /etc/odoo.conf

删除应用程序代码
rm -R /opt/odoo

删除启动过程
update-rc.d -f odoo-server remove
rm -f /etc/init.d/odoo-server

删除日志
rm -R /var/log/odoo

删除数据库
sudo service postgresql stop
apt-get remove postgresql -y
apt-get --purge remove postgresql\* -y
rm -r -f /etc/postgresql/
rm -r -f /etc/postgresql-common/
rm -r -f /var/lib/postgresql/

删除用户和组
userdel -r postgres
groupdel postgres

删除 postgre
查找文件 pg_hba.conf - 它可能位于,例如 /etc/postgresql-9.1/pg_hba.conf .
cd /etc/postgresql-9.1/

把它备份
cp pg_hba.conf pg_hba.conf-backup

放置以下行(作为第一个未注释的行,或作为唯一的行):
local  all   all   trust

重新启动您的 PostgreSQL 服务器(例如,在 Linux 上:)
sudo /etc/init.d/postgresql restart

您现在可以以任何用户身份连接。以 super 用户 postgres 连接(注意, super 用户名在您的安装中可能不同。例如,在某些系统中,它称为 pgsql。)
psql -U postgres

重设密码
ALTER USER my_user_name with password 'my_secure_password';

恢复旧 pg_hba.conf因为留在身边很危险
cp pg_hba.conf-backup pg_hba.conf

重启服务器,以便安全运行 pg_hba.conf
sudo /etc/init.d/postgresql restart

关于openerp - 从 Ubuntu 14.04 桌面删除 Odoo 9?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35570093/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com