java环境支持
#apt-get install default-jre
添加数据库
#mysql -u root -p
#CREATE DATABASE traccar_db CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
#CREATE USER 'traccar'@'localhost' IDENTIFIED BY 'traccar';
#GRANT ALL PRIVILEGES ON traccar_db.* TO 'traccar'@'localhost';
#FLUSH PRIVILEGES;
#quit
#mkdir -p /opt/traccar && cd /opt/traccar
#wget https://github.com/traccar/traccar/releases/download/v4.7/traccar-linux-64-4.7.zip
#unzip traccar-linux-64-4.7.zip
#./traccar.run
配置文件,参照https://www.traccar.org/install-digitalocean/
#nano conf/traccar.xml
#systemctl enable traccar
#systemctl start traccar
s#ystemctl status traccar
使用默认帐号admin/admin登录,原生中文界面。
可自定义地图:
谷歌:https://mt0.google.com/vt/lyrs=m&hl=en&x={x}&y={y}&z={z}&s=Ga
高德:https://webrd01.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}
手机app使用默认端口,无须修改,只要改IP,Android无Google框架,貌似不能定位。
0 条回复