小男孩‘自慰网亚洲一区二区,亚洲一级在线播放毛片,亚洲中文字幕av每天更新,黄aⅴ永久免费无码,91成人午夜在线精品,色网站免费在线观看,亚洲欧洲wwwww在线观看

分享

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

 ekylin 2022-01-19

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

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

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

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

       1.安全起見先備份原始源

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

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

       2.打開sources.list文件,刪除里面全部內(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.升級Ubuntu系統(tǒng)

  • sudo apt upgrade

     3.確認升級(輸入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./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ù)庫文件  (位置 /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ù)庫

  • service mysql restart

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

  • 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ù)庫密碼
  5. Re-enter new password:   輸入自己的數(shù)據(jù)庫密碼
  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ù)庫授權(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)建的用戶并進入根目錄(zhzy更換自己用戶)

  1. su zhzy
  2. cd ~

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

  1. 創(chuàng)建目錄
    mkdir ~/.pip
  2. 打開文件
    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. 保存退出(先按一下鍵盤esc,接著shift+z+z) 

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

  1. sudo mkdir /root/.pip

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

十六.安裝yarn

  1. sudo npm install -g yarn

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

  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框架  (此步驟時間長.耐心等待)一直無響應(yīng).輸入rm -r hrf 刪除之前           生成的目錄  重新運行

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

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

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

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

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

    安裝完成

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

    輸入2次y

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

  • cd hrf

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

  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                       更換你的站點名

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

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

     --admin-password admin                    更換自己站點管理密碼

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

 二十三.下載Erpnext

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

 二十四.安裝erpnext

  • bench install-app erpnext

 二十五.supervisorctl管理.nginx作網(wǎng)頁反向代理服務(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:///yuzelin/erpnext_chinese

  2. 安裝
    bench install-app erpnext_chinese

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

    0條評論

    發(fā)表

    請遵守用戶 評論公約

    類似文章 更多