And strip down the config file and add the include statement at the end to make it easier to handle various server blocks:.Create a configuration directory to make managing individual server blocks easier.Default username is admin and password is admin.Įcho 'nginx_enable="YES"' > /etc/rc.conf.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 Vi /usr/local/www/traccar/conf/traccar.xml Sed -i '' -e 's/\/opt/\/usr\/local\/www/g' /usr/local/www/traccar/conf/traccar.xml 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" : $Ĭommand_args="-jar $traccar_root/tracker-server.jar $traccar_root/conf/traccar.xml" # 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:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |