安裝KONGA
安裝nodejs和git,安裝kong的文檔中已經(jīng)安裝了,版本>=8,git運行
Centos安裝git
yum install git -y
yum install -y git
需要注意版本,git --version??, ???版本太低的話需要重新下載,否則git??clone時會報錯
git解壓編譯安裝
cd git-2.0.0
make configure
./configure --prefix=/usr/git ##配置目錄
make profix=/usr/git
make install
加入環(huán)境變量
echo "export PATH=$PATH:/usr/git/bin" >> /etc/profile
source /etc/profile
檢查版本
git --version
git version 2.0.0
安裝依賴 ?(這些依賴的包,安裝在konga目錄中,減少一些問題)
yum -y install nodejs npm
npm install -g gulp
npm install -g bower
npm install -g sails
安裝konga
git clone https://github.com/pantsel/konga.git
cd konga
npm install konga
npm start
Tips:這里會遇到很多問題
1.頁面空白
npm run bower-deps # (界面空白的時候,需要執(zhí)行這個)
npm install dotenv-extended
npm install angular
2.npm run bower-deps 一直失敗
大多數(shù)情況是因為有墻很多git包拉不下來
git clone出現(xiàn) fatal: unable to access 'https://github.com/...'的解決辦法(親測有效)_Dashi_Lu的博客-CSDN博客
可以參考這個