Nexus migration from window to Linux

Source: Internet
Author: User
Tags sonatype

Depending on your business needs, you need to migrate nexus-2.8.0 from Windows 2003 to CentOS 6.8 (x86_64). A few pits were met during the migration process, and this record has been made memo.

Because the nexus is common across platforms, I first packaged a Nexus backup on the original Windows Server, and two files were packaged with one: the NEXUS-2.8.0-05 application package and the other: the Sonatype-work file package. Of course, these two packages may be under a directory, but we built this platform before the colleague is developed, so ...

In the hit Sonatype-work file package found an error, WinRAR prompted a file is being used. You need to stop the Nexus first, as follows:

CMD #进入dosD:D: \>cd nexus-2.8.0-05\bin #进入nexus的bin目录nexus. bat Stop #停止nexus, Nexus's start Stop command is Nexus Start/stop

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M01/8D/8F/wKiom1ihbOvAem3LAABuXqBDWt4883.jpg-wh_500x0-wm_ 3-wmp_4-s_2164782666.jpg "title=" 11.jpg "alt=" Wkiom1ihbovaem3laabuxqbdwt4883.jpg-wh_50 "/>

Then play the Sonatype-work file package.


Next, create a Nexus user on the Linux platform and upload two packages to the Linux platform.

Useradd Nexus #在创建用户时不能使用-S/sbin/nologin parameter Mkdir/usr/local/nexus #创建nexus的目录


Then parse and modify the relevant directory name

Unzip NEXUS-2.8.0-05.ZIPMV nexus-2.8.0-05 Nexus-appunzip Sonatype-work.zip

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M01/8D/8F/wKiom1ihbjrDcagcAAAiO_mQyXI710.jpg-wh_500x0-wm_ 3-wmp_4-s_2420824741.jpg "title=" 22.jpg "alt=" Wkiom1ihbjrdcagcaaaio_mqyxi710.jpg-wh_50 "/>


Then make the relevant options changes

chmod 777/usr/local/nexus/nexus-app/bin/jsw/linux-x86-64/wrapper chmod 777/usr/local/nexus/nexus-app/bin/ Nexuschown-r Nexus.nexus/usr/local/nexus

650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M00/8D/8D/wKioL1ihbymRELZkAABA8iLLrEc206.jpg-wh_500x0-wm_ 3-wmp_4-s_4152014300.jpg "title=" 33.jpg "alt=" Wkiol1ihbymrelzkaaba8illrec206.jpg-wh_50 "/>


Modify Nexus Related Configuration

Vim/usr/local/nexus/nexus-app/bin/nexus nexus_home= "/usr/local/nexus/nexus-app" #nexus的主目录 RUN_AS_USER=nexus #ne Xus of running users

650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M00/8D/8D/wKioL1ihb8KTc1fHAADXnHxo8Ro518.jpg-wh_500x0-wm_ 3-wmp_4-s_503395561.jpg "title=" 44.jpg "alt=" Wkiol1ihb8ktc1fhaadxnhxo8ro518.jpg-wh_50 "/>


Finally, the Nexus user password is initialized.

First, stop the Nexus service

/usr/local/nexus/nexus-app/bin/nexus stop

Then, delete the Security-configuration.xml security.xml two files in the sonatype-work/nexus/conf directory

rm-rf/usr/local/nexus/sonatype-work/nexus/conf/security.xmlrm-rf/usr/local/nexus/sonatype-work/nexus/conf/ Security-configuration.xml

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M02/8D/8D/wKioL1ihcc_iy0BYAABHe0iFR5U562.jpg-wh_500x0-wm_ 3-wmp_4-s_1308908252.jpg "title=" 55.jpg "alt=" Wkiol1ihcc_iy0byaabhe0ifr5u562.jpg-wh_50 "/>

Finally, the account/password changed to: admin/admin123


Description

About Nexus System ports and file directory, mainly in the/usr/local/nexus/nexus-app/conf/nexus.properties this file for the relevant settings

650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M00/8D/8F/wKiom1ihctmSP8YUAAFJkUPiPoY776.jpg-wh_500x0-wm_ 3-wmp_4-s_3988929250.jpg "title=" 66.jpg "alt=" Wkiom1ihctmsp8yuaafjkupipoy776.jpg-wh_50 "/>


This migration is completed by: http://ip:8080/nexus/access to the Nexus via admin/admin123 login


Error 1:

[Email protected] ~]#/app/nexus-2.8.0-05/bin/nexus startstarting Nexus OSS ... Failed to start Nexus OSS.

The main reason is: Because Nexus and sonatype-work are not authorized

Chown-r Nexus.nexus/app/sonatype-work/chown-r nexus.nexus/app/nexus-2.8.0-05/


Error 2:

[Email protected] ~]#/app/nexus-2.8.0-05/bin/nexus startmissing platform binary:/app/nexus-2.8.0-05/bin/jsw/ Linux-x86-64/wrapper

The main reason is: 1,/app/nexus-2.8.0-05/bin/jsw/linux-x86-64/wrapper No permissions, the file needs to execute permissions. 2,/app/nexus-2.8.0-05/bin/nexus not set the "nexus_home=" parameter.

chmod 777/app/nexus-2.8.0-05/bin/jsw/linux-x86-64/wrappervim/app/nexus-2.8.0-05/bin/nexus NEXUS_HOME= "/app/ Nexus-2.8.0-05 "

650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M01/8D/8F/wKiom1ihdPmg6cfFAADTwwt7iMw901.jpg-wh_500x0-wm_ 3-wmp_4-s_3447255382.jpg "title=" 77.jpg "alt=" Wkiom1ihdpmg6cffaadtwwt7imw901.jpg-wh_50 "/>



This article from the "Heart" blog, reproduced please contact the author!

Nexus migration from window to Linux

Related Article

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.