乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

      第一章:odoo12基礎(chǔ)環(huán)境配置

       石旭明文摘 2019-11-21

      1、代碼拉?。?/h2>
      ①、在github上直接下載進(jìn)行壓縮獲取代碼;
      • 1

      在這里插入圖片描述
      ②、通過(guò)終端命令進(jìn)行clone代碼;

      git clone https://github.com/odoo/odoo.git --branch master --depth 1 --single-branch ./odoo12
      • 1

      在這里插入圖片描述

      2、安裝大象(postgresql)數(shù)據(jù)庫(kù):

      sudo apt-get install -y postgresql# 安裝完會(huì)自定生成 postgres用戶 用如下命令登錄sudo -u postgres psql# 創(chuàng)建用戶 此處創(chuàng)建用戶名為‘odoo12’ 密碼為‘123456’create user odoo12 superuser password '123456';
      • 1
      • 2
      • 3
      • 4
      • 5

      在這里插入圖片描述
      常用命令:

      \h:查看SQL命令的解釋,比如\h select。\?:查看psql命令列表。\l:列出所有數(shù)據(jù)庫(kù)。\c [database_name]:連接其他數(shù)據(jù)庫(kù)。\d:列出當(dāng)前數(shù)據(jù)庫(kù)的所有表格。\d [table_name]:列出某一張表格的結(jié)構(gòu)。\du:列出所有用戶。\e:打開(kāi)文本編輯器。\conninfo:列出當(dāng)前數(shù)據(jù)庫(kù)和連接的信息。
      • 1
      • 2
      • 3
      • 4
      • 5
      • 6
      • 7
      • 8
      • 9

      ①、配置大象數(shù)據(jù)庫(kù)(postgresql)的遠(yuǎn)程訪問(wèn):

      # 進(jìn)入 /usr/share/postgresql/9.5目錄打開(kāi)pg_hba.conf.sample 文件(文件所屬目錄根據(jù)創(chuàng)建而定)sudo vi pg_hba.conf.sample
      • 1
      • 2

      修改前:
      :
      修改后:
      在這里插入圖片描述
      注意:如未修改進(jìn)行外部訪問(wèn)在瀏覽器中會(huì)出現(xiàn)如下報(bào)錯(cuò):

      Uncaught Error: QWeb2: Template 'DashboardMain' not foundUncaught Error: QWeb2: Template 'mail.systray.MessagingMenu' not found
      • 1
      • 2
      • 3

      3、修改odoo.conf配置文件:

      在這里插入圖片描述

      4、修改完運(yùn)行odoo-bin,然后在瀏覽器輸入 localhost:8069:

      此時(shí)會(huì)出現(xiàn)如下兩種情況:
      ①、數(shù)據(jù)庫(kù)設(shè)置,如下圖,恭喜你無(wú)BUG:
      在這里插入圖片描述
      ②、無(wú)法訪問(wèn),出現(xiàn)服務(wù)器故障, 如下bug:

      psycopg2.OperationalError: FATAL: role 'odoo11' does not exist - - -
      • 1

      在這里插入圖片描述
      解決方法:

      sudo su - postgres -c 'createuser -s odoo11'
      • 1

      在這里插入圖片描述
      個(gè)人認(rèn)為出現(xiàn)這樣的原因:是ubuntu當(dāng)前用戶為odoo11,因此影響的。

      5、創(chuàng)建數(shù)據(jù)庫(kù):

      在這里插入圖片描述
      注意:當(dāng)點(diǎn)擊“Create database”時(shí)頁(yè)面出現(xiàn)雜亂現(xiàn)象,如下圖:
      原因:樣式無(wú)法加載;
      在這里插入圖片描述
      處理方法:

      pip install libsass #在環(huán)境下安裝 libsass包
      • 1
      • 2

      配置完成如下:在這里插入圖片描述

        本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購(gòu)買(mǎi)等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
        轉(zhuǎn)藏 分享 獻(xiàn)花(0

        0條評(píng)論

        發(fā)表

        請(qǐng)遵守用戶 評(píng)論公約

        類似文章 更多