日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

Odoo(OpenERP)配置文件详解

發布時間:2025/3/20 编程问答 31 豆豆
生活随笔 收集整理的這篇文章主要介紹了 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

?

轉載于:https://www.cnblogs.com/dancesir/p/7078933.html

總結

以上是生活随笔為你收集整理的Odoo(OpenERP)配置文件详解的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。