Skip to content

Instantly share code, notes, and snippets.

@gaupoit
Created December 15, 2016 04:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gaupoit/415ca4afff4f27a1a10c26a7cee05b59 to your computer and use it in GitHub Desktop.
Save gaupoit/415ca4afff4f27a1a10c26a7cee05b59 to your computer and use it in GitHub Desktop.
Setup nexmo in ubuntu
#!/bin/sh
#Download nexus oss https://www.sonatype.com/download-oss-sonatype
sudo cp nexus-3.1.0-04-unix.tar /usr/local
cd /usr/local
sudo tar -xvz nexus-3.1.0-04-unix.tar
sudo ln -s nexus-3.1.0-04 nexus
export $NEXUS_HOME=/usr/local/nexus-3.1.0-04
#Upgrading by download new version, untar and re-poit the symbolic link.
#If you use plugin, be sure to copy the new version from optional-plugins folder
#to plugin-repository
#running
cd /usr/local/nexus
./bin/nexus start
#Create a file called nexus.service in /etc/systemd/system
[Unit]
Description=nexus service
After=network.target
[Service]
Type=forking
ExecStart=/opt/nexus/bin/nexus start
ExecStop=/opt/nexus/bin/nexus stop
User=nexus
Restart=on-abort
[Install]
WantedBy=multi-user.target
#active service
sudo systemctl daemon-reload
sudo systemctl enable nexus.service
sudo systemctl start nexus.service
#running behind the proxy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment