Install traccar4/15/2024 ![]() Vi /usr/local/etc/nginx/conf.d/Īccess_log /var/log/ Įrror_log /var/log/-error. Include /usr/local/etc/nginx/conf.d/*.conf # Load config files from the /etc/nginx/conf.d directory #* And strip down the config file and add the include statement at the end to make it easier to handle various server blocks: Added password reset flow when emails are enabled globally. Dynamic map layer switching in the web app without page refresh. * Create a configuration directory to make managing individual server blocks easier Notable updates and new features: Events are now using GPS time when possible instead of relying on server time. You can achive this by adding a systemd Drop-In to the rvice. ![]() That being said, we highly recommend you do not run Traccar as root user. In favour of Traccar being deployable as easy as possible, we made the compromise of not tieing Traccar to running as a specific user. Jdbc:mysql://127.0.0.1:3306/traccardb?allowMultiQueries=true&autoReconnect=true&useUnicode=yes&characterEncoding=UTF-8&sessionVariables=sql_mode=ANSI_QUOTESĮcho 'traccar_enable="YES"' > /etc/rc.confĮcho 'nginx_enable="YES"' > /etc/rc.conf Running services as root is not a good practice. #* And modify the database configuration: Vi /usr/local/www/traccar/conf/traccar.xml See build from source for more information. Sed -i '' -e 's/\/opt/\/usr\/local\/www/g' /usr/local/www/traccar/conf/traccar.xml We strongly recommend using Intellij IDEA instead of Netbeans. Start_cmd="/usr/sbin/daemon -p $pidfile -u $traccar_user $command $command_args > $traccar_stdout 2> $traccar_stderr" Required_files="$traccar_root/conf/traccar.xml" Traccar has internal cache, so two servers will be out of sync very quickly. It can, but it wont work as you probably want. : $Ĭommand_args="-jar $traccar_root/tracker-server.jar $traccar_root/conf/traccar.xml" Can it be installed on two different servers and share the same database installed in one of them Anton Tananaev 6 years ago. # Add the following lines to /etc/rc.conf to enable `traccar': Sh n -noexec -target /usr/local/www/traccar GRANT ALL PRIVILEGES ON `traccardb`.* TO Then quit out of the mysql interface: #* And create the database traccardb and make the traccaruser the owner:ĬREATE DATABASE IF NOT EXISTS `traccardb` #* Then create the user traccaruser for the databaseĬREATE USER IDENTIFIED BY 'SuperSecretPassword' * Change the ownership of the traccar directory to traccar user:Ĭhown traccar:traccar /usr/local/www/traccarĮcho 'mysql_enable="YES"' > /etc/rc.conf The following packages are built from the latest source code and are not guaranteed to be stable. ![]() ![]() Pw useradd traccar -c Traccar -m -d /home/traccar -g traccar -s /bin/sh Download a preview of the next version of Traccar. Pkg install openjdk-jre maven3 mysql-connector-java git unzip Updated by Daniel Curtis over 8 years ago This is a guide for installing the Traccar GPS tracking server on FreeBSD 9. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |