Odoo中文社区可以通过以下三个域名访问:shine-it.net , odoocn.org,odoo.net.cn

原论坛用户的基本信息和发帖这里都予以保留,请注意:原论坛用户无需重新注册新用户,但是您的密码需要重置

开发人员可以登录gitter讨论组: http://gitter.im/odoo-china/Talk, 需要github账号

如果您登录系统碰到问题,请在微信公众号留言:

OpenERP 7中 openerp-server.conf 的解释



  • 服务器启动配置 – 通用项
    [code]# 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[/code]

    XML-RPC / HTTP – XML-RPC 配置
    [code]# 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[/code]

    XML-RPC / HTTPS – XML-RPC 安全配置
    [code]# 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[/code]

    NET-RPC – NET-RPC 配置
    [code]# 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[/code]

    WEB – Web 接口配置
    [code]# Filter listed database REGEXP
    dbfilter = .*[/code]

    测试群组 - 测试配置
    [code]# 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[/code]

    日志群组 - 日志配置
    [code]# 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.orm:DEBUG" 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[/code]

    SMTP Group – SMTP 配置
    [code]# 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[/code]

    数据库相关配置
    [code]# 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[/code]

    国际化选项
    [code]translate_modules = ['all'][/code]

    安全相关选项
    [code]# disable the ability to return the list of databases
    list_db = True[/code]

    高级选项
    [code]# 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[/code]

    多处理选项
    [code]# 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[/code]

    更多选项
    [code]server/openerp/tools/config.py[/code]



  • 服务器启动配置 – 通用项
    [code]# 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[/code]

    XML-RPC / HTTP – XML-RPC 配置
    [code]# 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[/code]

    XML-RPC / HTTPS – XML-RPC 安全配置
    [code]# 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[/code]

    NET-RPC – NET-RPC 配置
    [code]# 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[/code]

    WEB – Web 接口配置
    [code]# Filter listed database REGEXP
    dbfilter = .*[/code]

    测试群组 - 测试配置
    [code]# 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[/code]

    日志群组 - 日志配置
    [code]# 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.orm:DEBUG" 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[/code]

    SMTP Group – SMTP 配置
    [code]# 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[/code]

    数据库相关配置
    [code]# 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[/code]

    国际化选项
    [code]translate_modules = ['all'][/code]

    安全相关选项
    [code]# disable the ability to return the list of databases
    list_db = True[/code]

    高级选项
    [code]# 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[/code]

    多处理选项
    [code]# 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[/code]

    更多选项
    [code]server/openerp/tools/config.py[/code]



  • log_handler = [':INFO']

    这样写没用的,要这样写

    log_handler = :INFO

    奇怪但有效,呵呵





  • 嘿,我至少还翻译了一点,不是copy!没什么尊重不尊重的。你知道的资源没有share出来,挑刺谁不会!



  • 支持楼主!但是加一个链接会更好。



  • 分享不错,加条链接会更合理,方便我们看到原著,与peter所见略同



  • 感謝分享



  • 感谢楼主分享。走自己的路,让那些狗去叫吧!


登录后回复
 

与 Odoo 中文社区 的连接断开,我们正在尝试重连,请耐心等待