Odoo 中文社区

    • 注册
    • 登录
    • 搜索
    • 版块
    • 标签
    • 热门
    • 用户
    • 群组

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

    由于系统升迁的原因,本论坛部分较早期的内容存在格式和链接损坏失效的问题,并非本论坛系统本身的缺陷,望谅解

    本社区没有维护任何QQ群讨论组,任何与本社区同名的QQ群讨论组的言论与本社区无关!

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

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

    OpenERP 7中 openerp-server.conf 的解释

    Odoo 安装指南
    7
    9
    12278
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • O
      old_taoist 最后由 编辑

      服务器启动配置 – 通用项

      # Admin password for creating, restoring and backing up databases<br />admin_passwd = admin<br /><br /># default CSV separator for import and export<br />csv_internal_sep = ,<br /><br /># to compress reports<br />reportgz = False<br /><br /># disable loading demo data for modules to be installed (comma-separated, use &quot;all&quot; for all modules)<br />without_demo = False<br /><br /># 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.<br />import_partial = <br /><br /># file where the server pid will be stored<br />pidfile = None<br /><br /># specify additional addons paths (separated by commas)<br />addons_path = /full/path/to/addons<br /><br /># Comma-separated list of server-wide modules default=web<br />server_wide_modules = None
      



      XML-RPC / HTTP – XML-RPC 配置

      # disable the XML-RPC protocol<br />xmlrpc = True<br /><br /># Specify the TCP IP address for the XML-RPC protocol. The empty string binds to all interfaces.<br />xmlrpc_interface = <br /><br /># specify the TCP port for the XML-RPC protocol<br />xmlrpc_port = 8069<br /><br /># Enable correct behavior when behind a reverse proxy<br />proxy_mode = False
      



      XML-RPC / HTTPS – XML-RPC 安全配置

      # disable the XML-RPC Secure protocol<br />xmlrpcs = True<br /><br /># Specify the TCP IP address for the XML-RPC Secure protocol. The empty string binds to all interfaces.<br />xmlrpcs_interface = <br /><br /># specify the TCP port for the XML-RPC Secure protocol<br />xmlrpcs_port = 8071<br /><br /># specify the certificate file for the SSL connection<br />secure_cert_file = server.cert<br /><br /># specify the private key file for the SSL connection<br />secure_pkey_file = server.pkey
      



      NET-RPC – NET-RPC 配置

      # enable the NETRPC protocol<br />netrpc = False<br /><br /># specify the TCP IP address for the NETRPC protocol<br />netrpc_interface = <br /><br /># specify the TCP port for the NETRPC protocol<br />netrpc_port = 8070
      



      WEB – Web 接口配置

      # Filter listed database REGEXP<br />dbfilter = .*
      



      测试群组 - 测试配置

      # Launch a YML test file.<br />test_file = False<br /><br /># If set, will save sample of all reports in this directory.<br />test_report_directory = False<br /><br /># Enable YAML and unit tests.<br />test_enable = False<br /><br /># Commit database changes performed by YAML or XML tests.<br />test_commit = False
      



      日志群组 - 日志配置

      # file where the server log will be stored<br />logfile = None<br /><br /># do not rotate the logfile<br />logrotate = True<br /><br /># Send the log to the syslog server<br />syslog = False<br /><br /># setup a handler at LEVEL for a given PREFIX. An empty PREFIX indicates the root logger. This option can be repeated. Example: &quot;openerp.orm:DEBUG&quot; or &quot;werkzeug:CRITICAL&quot; (default: &quot;:INFO&quot;)<br />log_handler = &#91;&#039;:INFO&#039;]<br /><br /># specify the level of the logging. Accepted values: info, debug_rpc, warn, test, critical, debug_sql, error, debug, debug_rpc_answer, notset<br />log_level = info
      



      SMTP Group – SMTP 配置

      # specify the SMTP email address for sending email<br />email_from = False <br /><br /># specify the SMTP server for sending email<br />smtp_server = localhost <br /><br /># specify the SMTP port<br />smtp_port = 25 <br /><br /># specify the SMTP server support SSL or not<br />smtp_ssl = False <br /><br /># specify the SMTP username for sending email<br />smtp_user = False<br /><br /># specify the SMTP password for sending email<br />smtp_password = False
      



      数据库相关配置

      # specify the database name<br />db_name = False<br /><br /># specify the database user name<br />db_user = openerp<br /><br /># specify the database password<br />db_password = False<br /><br /># specify the pg executable path<br />pg_path = None<br /><br /># specify the database host<br />db_host = False<br /><br /># specify the database port<br />db_port = False<br /><br /># specify the the maximum number of physical connections to posgresql<br />db_maxconn = 64<br /><br /># specify a custom database template to create a new database<br />db_template = template1
      



      国际化选项

      translate_modules = &#91;&#039;all&#039;]
      



      安全相关选项

      # disable the ability to return the list of databases<br />list_db = True
      



      高级选项

      # enable debug mode<br />debug_mode = False<br /><br /># specify reference timezone for the server (e.g. Europe/Brussels&quot;)<br />timezone = False<br /><br /># 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. <br />osv_memory_count_limit = False <br /><br /># 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.<br />osv_memory_age_limit = 1.0 <br /><br /># Maximum number of threads processing concurrently cron jobs (default 2)<br />max_cron_threads = 2<br /><br /># Use the unaccent function provided by the database when available.<br />unaccent = False
      



      多处理选项

      # Specify the number of workers, 0 disable prefork mode.<br />workers = 0<br /><br /># Maximum allowed virtual memory per worker, when reached the worker be reset after the current request (default 671088640 aka 640MB)<br />limit_memory_soft = 671088640<br /><br /># Maximum allowed virtual memory per worker, when reached, any memory allocation will fail (default 805306368 aka 768MB)<br />limit_memory_hard = 805306368<br /><br /># Maximum allowed CPU time per request (default 60)<br />limit_time_cpu = 60<br /><br /># Maximum allowed Real time per request (default 120)<br />limit_time_real = 120<br /><br /># Maximum number of request to be processed per worker (default 8192)<br />limit_request = 8192
      



      更多选项

      server/openerp/tools/config.py
      
      1 条回复 最后回复 回复 引用 0
      • wjfonhand
        wjfonhand 最后由 编辑

        log_handler = [':INFO']

        这样写没用的,要这样写

        log_handler = :INFO

        奇怪但有效,呵呵

        GoodERP -- Odoo China fork

        1 条回复 最后回复 回复 引用 0
        • Y
          youring 最后由 编辑

          http://www.vionblog.com/openerp-server-conf-for-openerp-7-explained/

          尊重别人=尊重自己 😉

          1 条回复 最后回复 回复 引用 0
          • O
            old_taoist 最后由 编辑

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

            1 条回复 最后回复 回复 引用 0
            • L
              LondonBao 最后由 编辑

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

              1 条回复 最后回复 回复 引用 0
              • W
                wangpc 最后由 编辑

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

                1 条回复 最后回复 回复 引用 0
                • K
                  klm2242 最后由 编辑

                  感謝分享

                  1 条回复 最后回复 回复 引用 0
                  • 5
                    529471504 最后由 编辑

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

                    1 条回复 最后回复 回复 引用 0
                    • First post
                      Last post