Answer the question
In order to leave comments, you need to log in
How to deploy OSRM on a server?
Hello. There is a VPS, but I can’t deploy OSRM on it : I used
the relatively old article https://habr.com/post/224731/
And the new one: https://linux-core.blogspot.com/2018/04/osrm-cento ...
The server config is as follows:
https://www.ihc.ru/vps.html#20 - ssdVPS:4
OS: CentOS 6
You need to deploy OSRM on it for subsequent linking with leaflet (building routes).
Who has already deployed osrm - please, write, urgently need help $
PS Silence on freelancing
Answer the question
In order to leave comments, you need to log in
Put a centos that is not super ancient, probably more than a decade ago, you would have tried to deploy it on Windu 3.1
Are you sure that EL6 meets the minimum requirements of the project? Still, 2.6.32 is a very respectable, albeit workable bucket. Besides, do you happen to have OpenVZ? Regarding the use of OpenVZ, I once had cyberry.pro support very rudely (but, alas, this is their style), but in fact correctly answered that the OpenVZ container is only for storing data and nothing more.
If not barf from systemd - get EL7 or more other distribution with more recent kernel and package base.
Look for manuals on foreign resources - freelance, search engines, Stack Overflow.
Silence on freelanceThere, they mostly procrastinate uebuntu and shitty sites on it. They go well. Step aside and silence.
EL6 is deprecated. Need El7.
ssdVPS:4 is extremely low on RAM. most likely not enough.
it is not necessary to solve such tasks on cheap VDS. either will fall, or mercilessly slow down.
I now have OSRM for the entire Russian Federation running on a virtual machine with 24 GB of RAM.
install docker, then:
mkdir /data/
cd /data/
name=russia-latest
wget -N http://download.geofabrik.de/$name.osm.pbf
docker run -t -v osrmdata:/data osrm/osrm-backend osrm-extract -p /opt/car.lua /data/$name.osm.pbf
docker run -t -v osrmdata:/data osrm/osrm-backend osrm-partition /data/$name.osrm
docker run -t -v osrmdata:/data osrm/osrm-backend osrm-customize /data/$name.osrm
docker run -d -t -i -p 5007:5000 --restart unless-stopped --name $name -v osrmdata:/data osrm/osrm-backend osrm-routed --algorithm mld /data/$name.osrm
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question