CentOS 更新/打补丁
Jul 4, 2020- 升级所有包同时也升级软件和系统内核
yum -y update
- 只升级所有包,不升级软件和系统内核
yum -y upgrade
- 检测可更新软件包
yum check-update
- 更新指定包
yum update package_name
- 安全更新
yum update --security
yum -y update
yum -y upgrade
yum check-update
yum update package_name
yum update --security
pg_dump -h 127.0.0.1 -p 5432 -U username -c -C -f filename.sql database
psql -h 127.0.0.1 -p 5432 -U username -f filename.sql
打开odoo\tools\translate.py文件,找到函数resetlocale(),大约在1152行(v13)中添加一行代码:
ln = ln[0:ln.index('.')]
如下:
try:
return locale.setlocale(locale.LC_ALL, ln)
改为:
try:
ln = ln[0:ln.index('.')] # 添加此行
return locale.setlocale(locale.LC_ALL, ln)
此问题貌似不会出现在英文windows中,所以Odoo官方一直没注意到这个问题;此解决办法对Odoo 12同样有效。
ps -ef|grep nginx
nginx
或
nginx -c /etc/nginx/nginx.conf
或
service nginx start
nginx -t -c /etc/nginx/nginx.conf
nginx -s reload
nginx -s stop
或
service nginx stop
或
从容停止kill -QUIT 主进程号
或
强制停止pkill -9 nginx