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

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

    • 分享

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

       ekylin 2022-01-19

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

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

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

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

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

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

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

             2.打開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./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. 打開文件
        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 國(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.

      十六.安裝yarn

      1. sudo npm install -g yarn

      2. 配置 Yarn 為國(guó)內(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框架  (此步驟時(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:///phipsoft/frappe

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

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

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

        安裝完成

      3.  (重復(fù)此步驟.直到安裝成功) 如果未出現(xiàn)上圖所示或一直無(wú)響應(yīng). 斷開重新連接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ò)誤(檢查問題)重復(fù)第一步驟}

       二十三.下載Erpnext

      • bench get-app --branch version-13 https:///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:///yuzelin/erpnext_chinese

      2. 安裝
        bench install-app erpnext_chinese

        本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購(gòu)買等信息,謹(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)論公約

        類似文章 更多