Ubuntu installation Maven/nexus

Source: Internet
Author: User
Tags wrapper

Ubuntu maven Nexus installation

///////////////////////////////////////////////////////////////////////////////////////////

(i) System environment settings

# switch to root user

1.1 installing SSH apt-get install-yopenssh-server

1.2 Allow root Telnet

Vim/etc/ssh/sshd_config

Permitrootlogin Yes

Restart sshd

Ps–ef | grep ssh

/etc/init.d/ssh restart

1.3 shutting down the system firewall

sudo ufw disable

1.4 Configure IP

Vi/etc/network/interfaces

Ifaceeth0 inet Static

Address 192.168.xx.xx

netmask255.x.x.x

gateway192.x.x.x

1.5 Configure DNS

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/71/03/wKiom1XDHvaT7XA8AABF-526qew546.jpg "title=" 1. PNG "style=" Float:none; "alt=" wkiom1xdhvat7xa8aabf-526qew546.jpg "/>

Add DNS servers to each of the two files

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/70/FF/wKioL1XDIPCSjBYFAAAhKwqoAlE222.jpg "title=" 2.png " Style= "Float:none;" alt= "wkiol1xdipcsjbyfaaahkwqoale222.jpg"/>

(ii) Pre-installation preparations

Tools: System Version Ubuntu14.04

JAVA version JDK 1.8

Python version system comes with 2.7.6

Packages used for installation:

Maven installation package: Apache-maven-3.3.3-bin.tar

Nexus installation package: Nexus-latest-bundle.tar

# all of the following actions are performed under the root user #

1 create MAVEN users, groups, directories

1.1 Create Group//Group name: Maven

#groupadd maven

1.2 create user and join to MAVEN Group//user name running maven mavenroot

#useradd-G maven Mavenroot

1.3 Set User password passwd mavenroot


2 give mavenroot user sudo permissions

#vi/etc/sudoers

Join the Svnroot user below to force the save exit.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/71/03/wKiom1XDHvaCCyazAAA2PbVz-NA011.jpg "title=" 3.png " Style= "Float:none;" alt= "wkiom1xdhvaccyazaaa2pbvz-na011.jpg"/>

3 Create the installation, run the directory, and copy the installation package you want to here.

#cd/Home

#mkdirmavenroot

#mkdirmaven

#chown-R Mavenroot:maven Mavenroot

#chown-R Mavenroot:maven Maven

#chmod-R 777 Mavenroot/maven ( two changes)

4 Check if Java, Python is installed.

Installation method in the previous article, SVN installation documentation.

(iii) Formal installation

5.0 switch to the account running Maven

#su Mavenroot

5.1 Unzip the MAVEN main installation package and rename it to maven

#tar ZXF xxxxxxxxxxxxxx

#mv xxxxxxxxx maven

5.2 look at the permissions, the owner and the group is correct, no problem is mavenroot maven. Permission 777

5.3 Update the Java environment variable again, and verify that

  # Source/etc/profile

#java-version

6 then continue

6.1 go to the installation directory

#cd/home/maven/maven

6.2 add MAVEN Environment variables

#sudo Vim/etc/profile

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/70/FF/wKioL1XDIPGxmYK-AAAzGrkC-Tk393.jpg "title=" 4.png " Style= "Float:none;" alt= "wkiol1xdipgxmyk-aaazgrkc-tk393.jpg"/>

6.3 Update Environment Variables

#source/etc/profile

6.4 Verifying the installation

#mvn-version

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/71/03/wKiom1XDHvezv9M_AACm_UofNzY233.jpg "title=" 5.png " Style= "Float:none;" alt= "wkiom1xdhvezv9m_aacm_uofnzy233.jpg"/>

7 Installing the Nexus

master configuration file wrapper.conf

path: nexus/bin/jws/conf/wrapper.conf

7.1 Open Master Profile modification parameters

#vim nexus/bin/jws/conf/wrapper.conf

Modify the Wapper.java.command=java to

#wapper. Java.command=%java_home%/bin/java (Java installation path, can also write the JDK path directly)

7.2 Finally, to prevent problems, add permission again

#ls –la/home/maven

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/70/FF/wKioL1XDIPGwirgoAADwMSVGNio988.jpg "title=" 6.png " Style= "Float:none;" alt= "wkiol1xdipgwirgoaadwmsvgnio988.jpg"/>

# belong to the master, the group is not a problem, plus execute permissions.

#chmod-R 777/home/maven/*

# View

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/71/03/wKiom1XDH3TTY_e3AAFGeVvN758948.jpg "title=" 7.png " alt= "Wkiom1xdh3tty_e3aafgevvn758948.jpg"/>

7.3 Run Nexus

#cd/home/maven/nexus/bin

#./nexusstart

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/71/03/wKiom1XDHviQ5HNXAAA19MXqyPA137.jpg "title=" 8.png " Style= "Float:none;" alt= "wkiom1xdhviq5hnxaaa19mxqypa137.jpg"/>

7.4 Enter in Internet Explorer http://192.168.1.10:8081/nexus/

Login Admin

Password admin123


7.5 migrating old server data

# Data Migration Nexus to Nexus

Replace entire folder (storage)

/home/maven/sonatype-work/nexus/storage/// new Server file path

Access Address:

http://192.168.1.10:8081/nexus/content/

Other questions:

1. After the migration, search for items that cannot be queried.

Login control-repositories-Repair releases, snapshots, etc.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/70/FF/wKioL1XDIPPw1DJpAAIy9KU-Auk872.jpg "title=" 9.jpg " Style= "Float:none;" alt= "wkiol1xdippw1djpaaiy9ku-auk872.jpg"/>

2. do not want to add the default port 8081 at the time of access, adding rules to the firewall

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/71/03/wKiom1XDHvngWKTeAABPS3jBFHA429.jpg "title=" 10.png "Style=" Float:none; "alt=" wkiom1xdhvngwkteaabps3jbfha429.jpg "/>

3. do not want to add suffix/nexus when visiting

(1) Modify 650) this.width=650; "Src=" http://s3.51cto.com/wyfs02/M01/71/03/wKiom1XDHvmhwcUWAAAsBlylqTU942.jpg " Title= "11.png" style= "Float:none;" alt= "wkiom1xdhvmhwcuwaaasblylqtu942.jpg"/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/70/FF/wKioL1XDIPOTlSFkAACAD-uPGpM719.jpg "title=" 12.png "Style=" Float:none; "alt=" wkiol1xdipotlsfkaacad-upgpm719.jpg "/>

(2) Save reboot, then log in to console

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/71/03/wKiom1XDHvmzYrn5AAHpO0m5MMM744.jpg "title=" 13.png "Style=" Float:none; "alt=" wkiom1xdhvmzyrn5aahpo0m5mmm744.jpg "/>

(3) To see if the modification was successful

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/70/FF/wKioL1XDIPPQl7yVAAIWvt65bPc755.jpg "title=" 14.png "Style=" Float:none; "alt=" wkiol1xdippql7yvaaiwvt65bpc755.jpg "/>

Reference http://blog.csdn.net/zwc0910/article/details/17349111


Ubuntu installation Maven/nexus

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.