Centos 7 X64
Update Version¶
Install system dependencies¶
Install Python dependencies¶
yum install zlib-devel xz-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel libffi-devel gcc make
Install Node¶
wget https://nodejs.org/dist/v14.19.3/node-v14.19.3-linux-x64.tar.gz
tar zvxf node-v14.19.3-linux-x64.tar.gz -C /usr/local
Environment variable settings¶
echo '''export NODE_HOME=/usr/local/node-v14.19.3-linux-x64 export PATH=$PATH:$NODE_HOME/bin export NODE_PATH=$NODE_HOME/lib/node_modules''' /etc/profile
Make environment variables take effect immediately¶
Soft connection Node and NPM¶
ln -sf /usr/local/node-v14.19.3-linux-x64/bin/node /usr/bin/node
ln -s /usr/local/node-v14.19.3-linux-x64/bin/npm /usr/bin/npm
Verify that node is installed successfully¶
Verify that npm is installed successfully¶
Upgrade npm¶
Install yarn¶
Install quasar¶
npm install @quasar/cli@1.2.1 -g
ln -s /usr/local/node-v14.19.3-linux-x64/bin/quasar /usr/bin/quasar
Check quasar version¶
Upgrade sqlite3 version¶
- It is recommended to do this step before installing python3.8.10
Download the source code¶
unzip, compile¶
tar zxvf sqlite-autoconf-3300100.tar.gz
cd sqlite-autoconf-3300100/
./configure --prefix=/usr/local
make && make install
Replace system low version sqlite3¶
mv /usr/bin/sqlite3 /usr/bin/sqlite3_old
ln -s /usr/local/bin/sqlite3 /usr/bin/sqlite3
echo "/usr/local/lib" > /etc/ld.so.conf.d/sqlite3.conf
ldconfig
sqlite3 -version
Check python version¶
- If the python version is not 3.8.10, please execute the following command
cd /usr/src
wget https://www.python.org/ftp/python/3.8.10/Python-3.8.10.tgz
tar -zxvf Python-3.8.10.tgz
cd Python-3.8.10/
./configure --enable-optimizations --with-ssl-default-suites=openssl
make altinstall
mv /usr/bin/python3 /usr/bin/python3.bak
ln -s /usr/local/bin/python3.8 /usr/bin/python3
mv /usr/bin/pip3 /usr/bin/pip3.bak
ln -s /usr/local/bin/pip3.8 /usr/bin/pip3
Check pip3 list is installed successfully¶
Install git¶
Download GreaterWMS from GitHub¶
Elevate GreaterWMS Folder¶
Go to the GreaterWMS folder¶
- Sometimes, there will be problems when you install these libraries because of the python3 version, don't worry, pip3 install the wrong library.
Database generation¶
Run GreaterWMS
daphne -p 8008 greaterwms.asgi:application
- Now open your browser, type "http://127.0.0.1:8008/myip"
- and you will see the your internal ip
- remember it
Run GreaterWMS
daphne -b 0.0.0.0 -p 8008 greaterwms.asgi:application
- Now open your browser, type "http://{your internal ip}:8008"
- and you will see GreaterWMS run well
Go back to the GreaterWMS folder¶
- Wait for the Yarn installation to complete. In fact, you can also npm install it, but it will be slower Change yarn to domestic source
Go back to the baseurl folder¶
## Need to edit 'templates/public/statics/baseurl.txt' to your internal ip
Ctrl + C // go back to templates folder
## Example changes before
http://127.0.0.1:8008
## Example changes after
https://{ your external ip }:8008
- Press Esc and type ":wq" to save changes
- Now, you know how to deploy and modify the request address
Back to templates¶
Go back to the GreaterWMS folder¶
- Now, open the browser, type "http://{your internal ip}:8008", you can see the project is running