![]() ![]() PRITUNL FOR WINDOWS INSTALL# Install tells systemd when the service should be automatically started. # `ExecStart` defines the startup command for MongoDB server.ĮxecStart=/usr/bin/mongod -quiet -config /etc/nf # Key `User` specifies that the server will run under the mongodb user and # Service tells systemd, how the service should be started. sudo vim /etc/systemd/system/rvice #Unit contains the dependencies to be satisfied before the service is started. If you see something different like your mongodb is not running, then probably you need to create the following script and run:Ĭreate a configuration file named rvice in /etc/systemd/system to manage the MongoDB service. The installer has already populated the MongoDB URI. ![]() You will see a screen similar to this:Ĭonnect to the database. Open a web browser on your computer, and navigate to , replacing 123.45.67.89 with your VM IP address. Start the Pritunl service: sudo service pritunl start Install Pritunl and its required dependencies: sudo apt-get install python-software-properties pritunl mongodb-org NoteIf you’ve configured the firewall according to the Securing Your Server guide, be sure to add these port ranges to the /etc/ file. Sudo iptables -A INPUT -p `your protocol here` -m `your protocol here` -sport `your_port_here` -dport 1025:65355 -j ACCEPT ![]() Sudo iptables -A INPUT -p tcp -m tcp -sport 9700 -dport 1025:65355 -j ACCEPT If you have a firewall running on the Linode, add exceptions for Pritunl’s Web UI and server: sudo iptables -A INPUT -p udp -m udp -sport 9700 -dport 1025:65355 -j ACCEPT Update the package cache sudo apt-get update sudo apt-get update & sudo apt-get upgradeĪdd Pritunl’s APT repository and update the package lists: echo "deb trusty/mongodb-org/3.0 multiverse" > /etc/apt//mongodb-org-3.0.listĮcho "deb trusty main" > /etc/apt//pritunl.listĪdd repo keys for apt to validate against apt-key adv -keyserver hkp:// -recv 7F0CEB10Īpt-key adv -keyserver hkp:// -recv CF8E292A Update your bare-bone and freshly installed Ubuntu 16 system. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |