This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.OSRM及前端工具安装部署与调试 | |
1.1 OSRM安装 | |
代码下载(https://github.com/Project-OSRM/osrm-backend) | |
安装依赖库 | |
sudo apt install build-essential git cmake pkg-config \ | |
libbz2-dev libstxxl-dev libstxxl1v5 libxml2-dev \ | |
libzip-dev libboost-all-dev lua5.2 liblua5.2-dev libtbb-dev | |
编译安装 | |
mkdir -p build | |
cd build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
永久的开放需要的端口 | |
sudo firewall-cmd --zone=public --add-port=3000/tcp --permanent | |
sudo firewall-cmd --reload | |
之后检查新的防火墙规则 | |
firewall-cmd --list-all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo python /home/jingwei/.local/lib/python2.7/site-packages/pgadmin4/pgAdmin4.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. 启动elasticsearch | |
2. 启动API项目 及打开DEMO 准备数据测试 | |
3. 修改 ~/pelias.json最后 sw中 | |
"sw":{ | |
"datapath": "/Users/hanzhongjian/mapdesign/data/xz" | |
} | |
将路径修改为 数据的路径即可 | |
4. 开始修改sw项目中 sw2json/sw2json.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
参考http://pelias.io/install.html | |
1. 新建Install.sh,在其中增加: | |
for repository in schema api whosonfirst geonames openaddresses openstreetmap polylines; do | |
git clone https://github.com/pelias/${repository}.git # clone from Github | |
pushd $repository > /dev/null # switch into importer directory | |
git checkout production # or remove this line to stay with master | |
npm install # install npm dependencies | |
popd > /dev/null # return to code directory | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
参考http://pelias.io/install.html | |
1. 新建Install.sh,在其中增加: | |
for repository in schema api whosonfirst geonames openaddresses openstreetmap polylines; do | |
git clone https://github.com/pelias/${repository}.git # clone from Github | |
pushd $repository > /dev/null # switch into importer directory | |
git checkout production # or remove this line to stay with master | |
npm install # install npm dependencies | |
popd > /dev/null # return to code directory | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mac安装osrm_backend: | |
brew install tbb | |
brew install libstxxl | |
brew install lua | |
cd osrm-backend | |
mkdir -p build | |
cd build | |
cmake .. | |
cmake --build . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo yum install centos-release-scl | |
sudo yum install devtoolset-4-gcc* | |
scl enable devtoolset-4 bash | |
which gcc | |
gcc --version |