跳转至内容
  • 版块
  • 标签
  • 热门
  • 用户
  • 群组
皮肤
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • 默认(Flatly)
  • 不使用皮肤
折叠

Odoo 中文社区

  1. 主页
  2. 版块
  3. Odoo 安装指南
  4. OpenERP 7中 openerp-server.conf 的解释

OpenERP 7中 openerp-server.conf 的解释

已定时 已固定 已锁定 已移动 Odoo 安装指南
9 帖子 7 发布者 12.8k 浏览
  • 从旧到新
  • 从新到旧
  • 最多赞同
登录后回复
此主题已被删除。只有拥有主题管理权限的用户可以查看。
  • O 离线
    O 离线
    old_taoist
    写于 最后由 编辑
    #1

    服务器启动配置 – 通用项

    # 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
    • wjfonhandW 离线
      wjfonhandW 离线
      wjfonhand
      写于 最后由 编辑
      #2

      log_handler = [':INFO']

      这样写没用的,要这样写

      log_handler = :INFO

      奇怪但有效,呵呵

      GoodERP -- Odoo China fork

      1 条回复 最后回复
      0
      • Y 离线
        Y 离线
        youring
        写于 最后由 编辑
        #3

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

        尊重别人=尊重自己 😉

        1 条回复 最后回复
        0
        • O 离线
          O 离线
          old_taoist
          写于 最后由 编辑
          #4

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

          1 条回复 最后回复
          0
          • L 离线
            L 离线
            LondonBao
            写于 最后由 编辑
            #5

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

            1 条回复 最后回复
            0
            • W 离线
              W 离线
              wangpc
              写于 最后由 编辑
              #6

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

              1 条回复 最后回复
              0
              • K 离线
                K 离线
                klm2242
                写于 最后由 编辑
                #7

                感謝分享

                1 条回复 最后回复
                0
                • 5 离线
                  5 离线
                  529471504
                  写于 最后由 编辑
                  #8

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

                  1 条回复 最后回复
                  0

                  • 登录

                  • 没有帐号? 注册

                  • 登录或注册以进行搜索。
                  • 第一个帖子
                    最后一个帖子
                  0
                  • 版块
                  • 标签
                  • 热门
                  • 用户
                  • 群组