konga安装

2021-11-01  本文已影响0人  我是大黄蜂

安装KONGA

安装nodejs和git,安装kong的文档中已经安装了,版本>=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

加入环境变量

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 # (界面空白的时候,需要执行这个)

npm install dotenv-extended

npm install angular

2.npm run bower-deps 一直失败

大多数情况是因为有墙很多git包拉不下来

git clone出现 fatal: unable to access 'https://github.com/...'的解决办法(亲测有效)_Dashi_Lu的博客-CSDN博客

可以参考这个

上一篇下一篇

猜你喜欢

热点阅读