Odoo(OpenERP)配置文件详解
[options]
; addons模块的查找路径
addons_path = E:\GreenOdoo8.0\source\openerp\addons
; 管理员主控密码(用于创建、还原和备份数据库等操作)
admin_passwd = admin
; 自动重载?
auto_reload = None
; 用于导入导出的csv文件的默认分隔符
csv_internal_sep = ,
; data目录, 用于存放session信息、附件
data_dir = data
; 数据库主机名
db_host = 127.0.0.1
; 数据库的最大连接数
db_maxconn = 64
; 指定要使用的数据库名
db_name = False
; 数据库用户密码
db_password = openerp
; 数据库端口号
db_port = 65432
; 创建新数据库时使用的数据库模板
db_template = template1
; 数据库用户名
db_user = openerp
; 过滤要显示的数据库名称
dbfilter = .*
; 是否为调试模式
debug_mode = False
; 哪些模块加载demo数据?
demo = {}
; 用于发送邮件的邮箱地址
email_from = False
; 在导入大量数据时使用这个选项, 如果在导入期间程序宕机, 你可以在当前状态下继续。指定一个存储中间导入状态的文件名。
import_partial =
; 一个处理器允许使用的最大物理内存
limit_memory_hard = None
; 一个处理器允许使用的最大虚拟内存
limit_memory_soft = None
; 一个处理器接受的最大请求数
limit_request = None
; 一个请求最多占用多少处理器时间
limit_time_cpu = None
; 一个请求允许的最长实时时间
limit_time_real = None
; 是否允许显示数据库列表
list_db = True
; 是否将log写入db的ir_logging表
log_db = False
; 可以是一组module:log_level对, 默认值是:INFO(表示所有模块的默认日志级别为INFO级别)
log_handler = :INFO
; 日志的级别, 可选值包括debug_rpc_answer, debug_rpc, debug, debug_sql, info, warn, error, critical
log_level = info
; 指定用来存储日志的文件
logfile = openerp-server.log
; 是否按天存放日志
logrotate = False
; 长连接池使用的端口号?
longpolling_port = 8072
; 处理当前计划任务的最大线程数
max_cron_threads = 2
; 强制保存在virtual osv_memory表中的记录的最长时间,以小时为单位
osv_memory_age_limit = 1.0
; 强制一个virtual osv_memory表的最大记录数
osv_memory_count_limit = False
; 数据库可执行文件的路径
pg_path = runtime/pgsql/bin
; 存储服务器pid的文件名
pidfile = None
; 是否使用反向代理模式
proxy_mode = False
; 是否压缩报表
reportgz = False
; 指定用于SSL连接的证书文件
secure_cert_file = server.cert
; 指定用于SSL连接的主密钥文件
secure_pkey_file = server.pkey
; server范围的模块,以逗号分隔
server_wide_modules = None
; 发送邮件的SMTP用户密码
smtp_password = False
; SMTP端口号
smtp_port = 25
; SMTP服务器名
smtp_server = localhost
; SMTP服务器是否支持SSL协议
smtp_ssl = False
; 发送邮件的SMTP用户名
smtp_user = False
; 是否把日志发送给系统日志服务器
syslog = False
; 是否提交YAML或XML测试造成的数据库更改
test_commit = False
; 是否允许YAML和单元测试
test_enable = False
; YML测试文件
test_file = False
; 报表的范例的存放位置
test_report_directory = False
; 为系统提供一个参照的时区
timezone = False
; 哪些模块可翻译, 默认为all
translate_modules = ['all']
; 是否使用数据库的unaccent功能
unaccent = False
; 在安装时哪些模块不加载演示数据
without_demo = False
; 要使用的处理器数量
workers = None
; 是否禁止使用XML-RPC协议
xmlrpc = True
; 指定使用XML-RPC协议的IP地址,为空时表示绑定到现有IP
xmlrpc_interface =
; XML-RPC协议使用的TCP端口
xmlrpc_port = 8069
; 是否禁止使用XML-RPC安全协议
xmlrpcs = True
; 指定使用XML-RPC安全协议的IP地址,为空时表示绑定到现有IP
xmlrpcs_interface =
; XML-RPC安全协议使用的TCP端口
xmlrpcs_port = 8071
openerp-server.conf for OpenERP 7 explained ubuntu中OE的配置文件默认在目录: /etc/openerp Here are the options that you can use in your openerp-server.conf file to tweak your OpenERP 7 installation. In one of my previous posts Install OpenERP 7.0 from trunk I’ve written how to start your server with a start scrip just changing the ports and all other default settings. You can also start your server with a specified config file with -c command. ./server/openerp-server -c /path/to/openerp-server.conf
Here is the config file spitted into parts for easy understanding. Server startup config – Common options # Admin password for creating, restoring and backing up databases
admin_passwd = admin # default CSV separator for import and export
csv_internal_sep = , # to compress reports
reportgz = False # disable loading demo data for modules to be installed (comma-separated, use "all" for all modules)
without_demo = False # Use this for big data importation, if it crashes you will be able to continue at the current state. Provide a filename to store intermediate importation states.
import_partial = # file where the server pid will be stored
pidfile = None # specify additional addons paths (separated by commas)
addons_path = /full/path/to/addons # Comma-separated list of server-wide modules default=web
server_wide_modules = None
XML-RPC / HTTP – XML-RPC Configuration # disable the XML-RPC protocol
xmlrpc = True # Specify the TCP IP address for the XML-RPC protocol. The empty string binds to all interfaces.
xmlrpc_interface = # specify the TCP port for the XML-RPC protocol
xmlrpc_port = 8069 # Enable correct behavior when behind a reverse proxy
proxy_mode = False
XML-RPC / HTTPS – XML-RPC Secure Configuration # disable the XML-RPC Secure protocol
xmlrpcs = True # Specify the TCP IP address for the XML-RPC Secure protocol. The empty string binds to all interfaces.
xmlrpcs_interface = # specify the TCP port for the XML-RPC Secure protocol
xmlrpcs_port = 8071 # specify the certificate file for the SSL connection
secure_cert_file = server.cert # specify the private key file for the SSL connection
secure_pkey_file = server.pkey
NET-RPC – NET-RPC Configuration # enable the NETRPC protocol
netrpc = False # specify the TCP IP address for the NETRPC protocol
netrpc_interface = # specify the TCP port for the NETRPC protocol
netrpc_port = 8070
WEB – Web interface Configuration # Filter listed database REGEXP
dbfilter = .*
Static HTTP – Static HTTP service # enable static HTTP service for serving plain HTML files
static_http_enable = False # specify the directory containing your static HTML files (e.g '/var/www/')
static_http_document_root = None # specify the URL root prefix where you want web browsers to access your static HTML files (e.g '/')
static_http_url_prefix = None
Testing Group – Testing Configuration # Launch a YML test file.
test_file = False # If set, will save sample of all reports in this directory.
test_report_directory = False # Enable YAML and unit tests.
test_enable = False # Commit database changes performed by YAML or XML tests.
test_commit = False
Logging Group – Logging Configuration # file where the server log will be stored
logfile = None # do not rotate the logfile
logrotate = True # Send the log to the syslog server
syslog = False # setup a handler at LEVEL for a given PREFIX. An empty PREFIX indicates the root logger. This option can be repeated. Example: "openerp.ormEBUG" or "werkzeug:CRITICAL" (default: ":INFO")
log_handler = [':INFO'] # specify the level of the logging. Accepted values: info, debug_rpc, warn, test, critical, debug_sql, error, debug, debug_rpc_answer, notset
log_level = info
SMTP Group – SMTP Configuration # specify the SMTP email address for sending email
email_from = False # specify the SMTP server for sending email
smtp_server = localhost # specify the SMTP port
smtp_port = 25 # specify the SMTP server support SSL or not
smtp_ssl = False # specify the SMTP username for sending email
smtp_user = False # specify the SMTP password for sending email
smtp_password = False
Database related options # specify the database name
db_name = False # specify the database user name
db_user = openerp # specify the database password
db_password = False # specify the pg executable path
pg_path = None # specify the database host
db_host = False # specify the database port
db_port = False # specify the the maximum number of physical connections to posgresql
db_maxconn = 64 # specify a custom database template to create a new database
db_template = template1
Internationalisation options translate_modules = ['all']
Security-related options # disable the ability to return the list of databases
list_db = True
Advanced options – Advanced options # enable debug mode
debug_mode = False # specify reference timezone for the server (e.g. Europe/Brussels")
timezone = False # Force a limit on the maximum number of records kept in the virtual osv_memory tables. The default is False, which means no count-based limit.
osv_memory_count_limit = False # Force a limit on the maximum age of records kept in the virtual osv_memory tables. This is a decimal value expressed in hours, and the default is 1 hour.
osv_memory_age_limit = 1.0 # Maximum number of threads processing concurrently cron jobs (default 2)
max_cron_threads = 2 # Use the unaccent function provided by the database when available.
unaccent = False
Multiprocessing options # Specify the number of workers, 0 disable prefork mode.
workers = 0 # Maximum allowed virtual memory per worker, when reached the worker be reset after the current request (default 671088640 aka 640MB)
limit_memory_soft = 671088640 # Maximum allowed virtual memory per worker, when reached, any memory allocation will fail (default 805306368 aka 768MB)
limit_memory_hard = 805306368 # Maximum allowed CPU time per request (default 60)
limit_time_cpu = 60 # Maximum allowed Real time per request (default 120)
limit_time_real = 120 # Maximum number of request to be processed per worker (default 8192)
limit_request = 8192
There are few more options that you can find in this file vi server/openerp/tools/config.py
Odoo(OpenERP)配置文件详解的更多相关文章
- quartz配置文件详解
quartz配置文件详解(转载) quartz学习总结: 一.关于job: 用Quartz的行话讲,作业是一个执行任务的简单Java类.任务可以是任何Java代码.只需你实现org.qu ...
- WebConfig配置文件详解
今天看到博客园一位朋友整理的一个WebConfig配置文件详解,觉得不错,转载一下: <?xml version="1.0"?> <!--注意: 除了手动编辑此文 ...
- tomcat配置文件详解
Tomcat系列之服务器的安装与配置以及各组件详解 tomcat 配置文件详解
- ubuntu nginx 安装以及配置文件详解
1.到nginx官网下载源码包.最好下载稳定版本,nginx官网http://www.nginx.org/ 2.安装nginx依赖包运行命令: sudo apt-get install libssl- ...
- Spring配置文件详解 – applicationContext.xml文件路径
Spring配置文件详解 – applicationContext.xml文件路径 Java编程 spring的配置文件applicationContext.xml的默 ...
- spring配置文件详解--真的蛮详细
spring配置文件详解--真的蛮详细 转自: http://book.51cto.com/art/201004/193743.htm 此处详细的为我们讲解了spring2.5的实现原理,感觉非常 ...
- net-snmp配置文件详解
net-snmp配置文件详解 net-snmp的配置文件是有一定的层次结构的,配置起来也很方便.网上找了很多资料,大概把这个配置文件的各个信息搞懂了一点.其实在net-snmp的EXAMPLE.con ...
- Rsyslog配置文件详解
Rsyslog配置文件详解https://my.oschina.net/0757/blog/198329 # Save boot messages also to boot.log 启动的相关信息lo ...
- (原创)LAMP搭建之二:apache配置文件详解(中英文对照版)
LAMP搭建之二:apache配置文件详解(中英文对照版) # This is the main Apache server configuration file. It contains the # ...
随机推荐
- scala中Map集合的简单使用
import scala.collection.mutable /** * Map集合的简单使用 */ object MapUse { def main(args: Array[String]): U ...
- 概率dp——cf518D
通过最后的概率求最终的期望 #include<bits/stdc++.h> using namespace std; ; double p,dp[maxn][maxn]; int n,t; ...
- web移动端rem的适配
** 需求: 随着移动端设备的变化,内容也跟着变化.**先来说说rem单位,以rem为单位,其大小是根据根元素(html标签)的字体大小来判断的, 如 html的font-size:100p ...
- 一篇关于Matcher find方法深刻理解的文章
文章目录 知识点 find find(int var1) reset group(int var1) 源码 故事是这样的 探索 问题解决 方法一: 方法二: 方法三: 总结 知识点 find 首先fi ...
- sql stuff拼接字符串的用法
要把图2显示成图1的方法:要用到stuff函数,并且图1显示的时间有所截断. 图2sql,只是很普通的sql ), SKSJ, )=' order by SKSJ 图1sql,用了stuff拼接 ), ...
- <Python基础>装饰器的基本原理
1.装饰器 所谓装饰器一般是对已经使用(上线)的函数增加功能. 但是因为一般的大公司的严格按照开放封闭原则(对扩展是开放的,对修改是封闭的),不会让你修改原本的函数. 装饰器就是在不改变原本的函数且不 ...
- Berlin Programming Contest 2004 Heavy Transportation /// dijkstra oj22604
题目大意: 输入t:t为样例数 每个样例输入n,m:n 为顶点个数 m 为路径数 接下来m行 每行输入 u v w :从 u 点到 v 点的路承重为 w 输出 车子若想通过 1~n的最短路 车重需限 ...
- php 例子
图片上传 uploadify(flash版是免费的) 12个最好的 HTML5 jQuery 文件上传脚本 20款最好的jQuery文件上传插件
- nodejs的安装和环境配置
在安装npm的时候可能会报错, 可以按准过cnpm时淘宝在国内的npm镜像 命令如下:npm install -g cnpm --registry=https://registry.npm.taoba ...
- Mybatis 动态insert动态插入的坑
在写insert子句的时候,由于不知道需要插入多少字段,mybatis通过prefix,suffix,suffixOverrides很好的解决了该问题,实现了动态insert语句. 用这种动态插入时& ...