免费视频淫片aa毛片_日韩高清在线亚洲专区vr_日韩大片免费观看视频播放_亚洲欧美国产精品完整版

打開(kāi)APP
userphoto
未登錄

開(kāi)通VIP,暢享免費(fèi)電子書(shū)等14項(xiàng)超值服

開(kāi)通VIP
云Ubuntu 20.04 系統(tǒng)下 erpnext v13 安裝部署(圖文并茂按步驟基本成功)

本文基于京東云,Ubuntu 20.04 ,系統(tǒng)安裝

本文全程使用"FinalShell SSH"   "Noepad++" 工具

一.使用ssh登錄京東云 (不會(huì)自行度娘)

  二.更換阿里源(防止因網(wǎng)絡(luò)問(wèn)題出錯(cuò))

       1.安全起見(jiàn)先備份原始源

  • sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup

       2.修改文件(位置:/etc/apt/sources.list)

       2.打開(kāi)sources.list文件,刪除里面全部?jī)?nèi)容,

          替換以下源

    1. deb http://mirrors.aliyun.com/ubuntu/ focal main restricted
    2. deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted
    3. deb http://mirrors.aliyun.com/ubuntu/ focal universe
    4. deb http://mirrors.aliyun.com/ubuntu/ focal-updates universe
    5. deb http://mirrors.aliyun.com/ubuntu/ focal multiverse
    6. deb http://mirrors.aliyun.com/ubuntu/ focal-updates multiverse
    7. deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
    8. deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted
    9. deb http://mirrors.aliyun.com/ubuntu/ focal-security universe
    10. deb http://mirrors.aliyun.com/ubuntu/ focal-security multiverse

          修改后

       保存上傳服務(wù)器

三,更新Ubuntu系統(tǒng)

     1.檢查Ubuntu系統(tǒng)是否有更新

  • sudo apt update

     2.升級(jí)Ubuntu系統(tǒng)

  • sudo apt upgrade

     3.確認(rèn)升級(jí)(輸入Y)

        更新速度看服務(wù)器的帶寬

 四.更新系統(tǒng)并且重啟系統(tǒng)

  • apt update && apt upgrade -y && shutdown -r now

五.安裝curl

  • sudo apt-get install curl

 六.用curl下載node.js

  • curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -

七.安裝erpnext v13 依賴

  • apt install -y nodejs mariadb-server-10.3 redis-server python3-pip nginx python3-testresources

 八.修改數(shù)據(jù)庫(kù)文件  (位置 /etc/mysql/my.cnf)  最后面添加以下內(nèi)容

    1. [mysqld]
    2. character-set-client-handshake = FALSE
    3. character-set-server = utf8mb4
    4. collation-server = utf8mb4_unicode_ci
    5. [mysql]
    6. default-character-set = utf8mb4

九.重啟數(shù)據(jù)庫(kù)

  • service mysql restart

十.數(shù)據(jù)庫(kù)安全配置(記住自己的數(shù)據(jù)庫(kù)密碼)

  • mysql_secure_installation
  1. Enter current password for root (enter for none): 
  2. #這里直接回車
  3. Set root password? [Y/n] Y
  4. New password:                 輸入自己的數(shù)據(jù)庫(kù)密碼
  5. Re-enter new password:   輸入自己的數(shù)據(jù)庫(kù)密碼
  6. Remove anonymous users? [Y/n] Y
  7. Disallow root login remotely? [Y/n] n
  8. Remove test database and access to it? [Y/n] Y
  9. Reload privilege tables now? [Y/n] Y

 十一.數(shù)據(jù)庫(kù)授權(quán)

  1. mysql -u root -p
  2.  輸入上面設(shè)置的密碼并執(zhí)行
    1. USE mysql;
    2. UPDATE user SET plugin=' ' WHERE user ='root';
    3. FLUSH PRIVILEGES;
    4. exit;

十二.創(chuàng)建用戶

  1. 創(chuàng)建用戶(zhzy更換自己用戶)
    adduser zhzy
  2. 輸入密碼

  3. 下面直接回車鍵(最后輸入Y)

  4. 授權(quán)(zhzy更換自己用戶)

    usermod -aG sudo zhzy

十三.切換剛創(chuàng)建的用戶并進(jìn)入根目錄(zhzy更換自己用戶)

  1. su zhzy
  2. cd ~

十四.當(dāng)前用戶 pip 更換國(guó)內(nèi)源

  1. 創(chuàng)建目錄
    mkdir ~/.pip
  2. 打開(kāi)文件
    vim ~/.pip/pip.conf
  3. 粘貼以下內(nèi)容(注意粘貼內(nèi)容完整性)
    1. [global]
    2. timeout = 120
    3. index-url = https://mirrors.aliyun.com/pypi/simple/
    4. [install]
    5. trusted-host=mirrors.aliyun.com

  4. 保存退出(先按一下鍵盤(pán)esc,接著shift+z+z) 

十五.更改 root 用戶的 pip 國(guó)內(nèi)源(輸入自己用戶密碼) 

  1. sudo mkdir /root/.pip

  2. sudo cp ~/.pip/pip.conf /root/.pip
  3. 更改 npm 的源為國(guó)內(nèi)的淘寶
    sudo apt install npm
    npm config set registry https://registry.npm.taobao.org

十六.安裝yarn

  1. sudo npm install -g yarn

  2. 配置 Yarn 為國(guó)內(nèi)的源
    yarn config set registry https://registry.npm.taobao.org

  3. 查看安裝版本

    node -v && npm -v && python3 -V && pip3 -V && yarn -v

十七. 安裝bench(輸入下面兩條命令)

  1. pip3 install frappe-bench

  2. sudo pip3 install frappe-bench

 十八.重啟系統(tǒng)

  • sudo reboot

十九.安裝git

  • sudo apt install git

二十. 使用bench命令安裝frappe框架  (此步驟時(shí)間長(zhǎng).耐心等待)一直無(wú)響應(yīng).輸入rm -r hrf 刪除之前           生成的目錄  重新運(yùn)行

  1. 切換用戶(更換自己創(chuàng)建的用戶名).并且在根目錄
    su zhzy
    cd ~

  2.  安裝命令(hrf 更換自己目錄名)
    bench init --frappe-branch version-13 hrf --frappe-path=https://gitee.com/phipsoft/frappe

     下面出現(xiàn)錯(cuò)誤(別急)

    系統(tǒng)會(huì)接著 下載

    出現(xiàn)以下就差不多了

    安裝完成

  3.  (重復(fù)此步驟.直到安裝成功) 如果未出現(xiàn)上圖所示或一直無(wú)響應(yīng). 斷開(kāi)重新連接shh.回到第一步驟輸入
    rm -r hrf

    輸入2次y

二十一. 進(jìn)入bench目錄(hrf更換自己目錄名)

  • cd hrf

二十二.創(chuàng)建站點(diǎn)(指定數(shù)據(jù)庫(kù)創(chuàng)建站點(diǎn))

  1. bench new-site erpnext --verbose --db-name erpnext --db-host 127.0.0.1 --db-port 3306 --mariadb-root-username root --mariadb-root-password xxxx --admin-password admin --force

    bench new-site erpnext                       更換你的站點(diǎn)名

    --db-name erpnext                               更換自己數(shù)據(jù)庫(kù)名

    --mariadb-root-password xxxx            更換上面數(shù)據(jù)庫(kù)的密碼

     --admin-password admin                    更換自己站點(diǎn)管理密碼

  2. 安裝完成{出現(xiàn)錯(cuò)誤(檢查問(wèn)題)重復(fù)第一步驟}

 二十三.下載Erpnext

  • bench get-app --branch version-13 https://gitee.com/qinyanwan/erpnext
  • 下載完成

 二十四.安裝erpnext

  • bench install-app erpnext

 二十五.supervisorctl管理.nginx作網(wǎng)頁(yè)反向代理服務(wù)器(zhzy更換自己創(chuàng)建的用戶名和用戶密碼)

  • sudo bench setup production zhzy
  • 輸入Y 
  •  完成

 二十六.瀏覽器輸入網(wǎng)站IP(恭喜你ERP架設(shè)完成)

以下為后續(xù)優(yōu)化.

歡迎加入ERPNext中文QQ群641514022(大神聚集為你排憂解難)

一 .安裝余老師漢化APP

  1. 下載
    bench get-app --branch master https://gitee.com/yuzelin/erpnext_chinese

  2. 安裝
    bench install-app erpnext_chinese

本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊舉報(bào)。
打開(kāi)APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
ubuntu16.04將python2改為python3并安裝pip3最新版
Ubuntu 16.04 一系列軟件安裝命令,包括QQ、搜狗、Chrome、vlc、網(wǎng)易云音樂(lè)安裝方法
win10利用WSL2安裝docker的2種方式
如何優(yōu)雅地在 Linux 上運(yùn)行 QQ、微信?
新手安裝Ubuntu 16.04 操作系統(tǒng)
不用裝雙系統(tǒng),直接在 Windows 上體驗(yàn) Linux
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長(zhǎng)圖 關(guān)注 下載文章
綁定賬號(hào)成功
后續(xù)可登錄賬號(hào)暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服