Install GPS Tracking Server pada VPS CENTOS 7

0 Comments

pertama masuk sebagai ROOT pada VPS

Commands

 

 

Install JDK dulu

sudo yum install java-11-openjdk

Download the latest installer

wget https://www.traccar.org/download/traccar-linux-64-latest.zip

Unzip the file and run the installer

unzip traccar-linux-*.zip && ./traccar.run

Update the configuration file to use MySQL database

cat > /opt/traccar/conf/traccar.xml << EOF
<?xml version='1.0' encoding='UTF-8'?>

<!DOCTYPE properties SYSTEM 'http://java.sun.com/dtd/properties.dtd'>

<properties>

    <entry key="config.default">./conf/default.xml</entry>

    <entry key='database.driver'>com.mysql.jdbc.Driver</entry>
    <entry key='database.url'>jdbc:mysql://localhost/traccar?serverTimezone=UTC&amp;useSSL=false&amp;allowMultiQueries=true&amp;autoReconnect=true&amp;useUnicode=yes&amp;characterEncoding=UTF-8&amp;sessionVariables=sql_mode=''</entry>
    <entry key='database.user'>root</entry>
    <entry key='database.password'>root</entry>

</properties>
EOF

Start Traccar service

service traccar start

kalau error pakai perintah ini:

sudo systemctl start traccar.service

 

Leave a Reply

Your email address will not be published. Required fields are marked *