OpenERP 安裝和常見問題

OpenERP 安裝文檔
服務器環境: ubuntu12.04-server-amd64
約定: 紅色爲須要執行的命令
安裝Ubuntu之後,先配置好網絡,保證服務器能夠上網。網絡內容在/etc/network/interface設置
apt-get update && apt-get upgrade 更新服務器軟件包,保證軟件包爲最新。
.而後安裝資料庫(postgresql):
sudo apt-get install postgresql  //postgresql版本爲8.4
創建資料庫賬號及密碼:
sudo su postgres //切換爲postgres用戶
createuser openerp // 建立openerp使用的賬號和密碼
Shall the new role be a superuser? (y/n) y
    psql template1
     alter role openerp with password 'postgres';
安裝全部python所須要的庫:
sudo apt-get install python-dateutil python-feedparser python-gdata python-ldap python-libxslt1 python-lxml python-mako python-openid python-psycopg2 python-pybabel python-pychart python-pydot python-pyparsing python-reportlab python-simplejson python-tz python-vatnumber python-vobject python-webdav python-werkzeug python-xlwt python-yaml python-zsi
在Ubuntu的更新來源/etc/apt/sources.list中增長一行:
deb http://nightly.openerp.com/7.0/nightly/deb/ ./
*更新來源: sudo apt-get update
*升級全部套件: sudo apt-get upgrade
安裝openerp: sudo apt-get install openerp
安裝完成以後就能夠經過瀏覽器訪問了。http://hostname:8069
第一次瀏覽就會要求創建一個新的資料庫,輸入新的資料庫名稱及管理員密碼後,點「create」便可。
大功告成,剩下的就是慢慢安裝模塊測試了。

補充說明:
    由於中文的報表中文字顯示問題,因此還要增長一個模塊。
1.首先下載安裝模塊:
wget http://apps.openerp.com/addon/get_module_as_zip/6647/oecn_base_fonts.zip
2.將下載的文件複製到指定位置:
sudo cp oecn_base_fonts.zip /usr/lib/pymodules/python2.7/openerp/addons
3.解壓縮下載的檔案,在Ubuntu中解壓縮ZIP須要先下載unzip。sudo apt-get install unzip
4.在 /usr/lib/pymodules/python2.7/openerp/addons執行解壓縮指令:
sudo unzip oecn_base_fonts.zip
5.從新啓動服務器:sudo service openerp restart
6.使用admin登陸openerp頁面,在「設置」->"模塊"->"執行已安裝的升級"菜單中執行(若是看不到此菜單,則在admin的賬號中修改訪問權限中「技術特性」進行勾選,並從新登陸).
7.而後在「設置」->「模塊」->「可安裝的模塊」菜單中搜索「oecn」,就能夠看到新增的模塊,並安裝。
8.在Ubuntu中安裝中文字體:
   $ sudo apt-get install ttf-wqy-zenhei // 安裝文泉譯正黑字體
   $ sudo apt-get install ttf-wqy-microhei // 安裝文泉譯微米黑字體
9.最後在「設置」->「設置」->「常規設置」中,找到RML Rrepot Font,將Font Url設爲/usr/share/fonts/truetype/wqy/wqy-zenhei.ttc,並勾選【CJK Wrap】
10.中文報表問題已經設置完成。

OpenERP在登陸界面去掉"Manage Databases"按鈕
    生產環境下,爲安全起見,可在登陸界面去掉"Manage Databases"按鈕。
修改base.xml文件,直接使用 方式去掉MD連接.這樣經過去掉MD連接的也能夠實現不讓其餘人進行database管理.這個方法也測試經過.
ubuntu下base.xml位置在"/usr/share/pyshared/openerp/addons/web/static/src/xml/",如下是操做步驟
1. 命令輸入"sudo vi /usr/share/pyshared/openerp/addons/web/static/src/xml/base.xml"(不包括最前和最後雙引號)
2. 找到第81行,包含」Manage Databases」關鍵字,刪除此行就能夠了, :wq 保存退出(刪除以前注意備份此文件)
5. 重啓OpenERP:sudo /etc/init.d/openerp restart
Phppgadmin  web客戶端操做postgresql數據庫
首先安裝圖形客戶端phppgadmin,安裝命令行:apt-get install phppgadmin
而後運行客戶端並鏈接數據庫.
安裝完成後訪問 http://localhost/phppgadmin
就能夠訪問。Postgresql的web管理界面,登錄名爲 安裝數據庫時建立的用戶和密碼
參考資料:
相關文章
相關標籤/搜索