Created
December 15, 2016 04:27
-
-
Save gaupoit/415ca4afff4f27a1a10c26a7cee05b59 to your computer and use it in GitHub Desktop.
Setup nexmo in ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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