代码拉取完成,页面将自动刷新
同步操作将从 GreaterWMS/GreaterWMS 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
su - // Enter root
yum update
yum upgrade
yum -y install gcc-c++
yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel libffi-devel gcc make
yum install nodejs
npm install n -g
/usr/local/bin/n 14.18.3 // update nodejs
npm install npm -g
npm install yarn -g
npm install @quasar/cli -g
npm install cordova -g
cd /usr/src
wget https://www.python.org/ftp/python/3.9.5/Python-3.9.5.tgz // download python3.9.5
tar -zxvf Python-3.9.5.tgz
cd Python-3.9.5/
./configure --enable-optimizations
make altinstall
mv /usr/bin/python3 /usr/bin/python3.bak // backup python3
ln -s /usr/local/bin/python3.9 /usr/bin/python3
mv /usr/bin/pip3 /usr/bin/pip3.bak // backup pip3
ln -s /usr/local/bin/pip3.9 /usr/bin/pip3
yum install git // install git
git clone https://github.com/Singosgu/GreaterWMS.git // clone GreaterWMS from github
chmod -R 755 GreaterWMS
cd GreaterWMS
pip3 install -r requirements.txt
python3 manage.py makemigrations
python3 manage.py migrate
/usr/local/bin/daphne -p 8008 greaterwms.asgi:application
// open Chrom "127.0.0.1:8008/myip", you will get your internal lan ip, remember it
Ctrl + C // back GreaterWMS folder
cd templates // enter templates folder
/usr/local/bin/yarn install
/usr/local/bin/quasar d // it will start web site
Ctrl + C // back templates folder
cd src/boot
vim axios_request.js // change request baseurl
// change "127.0.0.1" to your internal IP, baseurl is for http, ws is for websocket
// save it
/usr/local/bin/quasar build // build your web site
cd .. // back to GreaterWMS folder
/usr/local/bin/daphne -b 0.0.0.0 -p 8008 greaterwms.asgi:application
// now,you can use "internal IP:8008" to use greaterwms
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。