Debian9 安裝odoo12.0手記

  1. 使用一般的 apt 升級命令使您的安裝保持最新。css

    apt-get update && apt-get upgrade -y
  2. 安裝nodejshtml

    curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
    
    apt-get install -y nodejs

    一旦npm安裝,使用它來安裝lessnode

    npm install -g less less-plugin-clean-css
    
    apt-get install node-less
  3. 安裝wkhtmltopdf,要打印PDF報告,必須本身安裝wkhtmltopdf:debian存儲庫中提供的wkhtmltopdf版本不支持頁眉和頁腳,所以沒法自動安裝。 推薦版本爲0.12.1,可在wkhtmltopdf下載頁面的歸檔部分中找到 linux

    wget http://security.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.0.0_1.0.1t-1+deb8u9_amd64.deb
    dpkg -i libssl1.0.0_1.0.1t-1+deb8u9_amd64.deb
    
    wget http://ftp.cn.debian.org/debian/pool/main/libp/libpng/libpng12-0_1.2.50-2+deb8u3_amd64.deb
    dpkg -i libpng12-0_1.2.50-2+deb8u3_amd64.deb
    
    curl -o wkhtmltox.tar.xz -SL https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
    echo '3f923f425d345940089e44c1466f6408b9619562 wkhtmltox.tar.xz' | sha1sum -c -
    tar xvf wkhtmltox.tar.xz
    cp wkhtmltox/lib/* /usr/local/lib/
    cp wkhtmltox/bin/* /usr/local/bin/
    cp -r wkhtmltox/share/man/man1 /usr/local/share/man/
    
    sudo ln -s /usr/local/bin/wkhtmltopdf /usr/bin
    sudo ln -s /usr/local/bin/wkhtmltoimage /usr/bin
  4.  

    添加 odoo11.0存儲庫,安裝odoonginx

    # wget -O - https://nightly.odoo.com/odoo.key | apt-key add -
    # echo "deb http://nightly.odoo.com/12.0/nightly/deb/ ./" >> /etc/apt/sources.list.d/odoo.list
    # apt-get update && apt-get install odoo
  5. 安裝nginx,參考連接 設置nginxgit

    apt-get install nginx
  6. 參考連接 優化Postgresqlgithub

  7. 啓動服務sql

    systemctl enable postgresql
    systemctl enable odoo
    systemctl enable nginx
    
    systemctl restart postgresql
    systemctl restart odoo
    systemctl restart nginx
     
相關文章
相關標籤/搜索