当前位置:网站首页>Nexus data migration
Nexus data migration
2022-04-22 01:35:00 【zhangjunli】
environmental information
| operating system |
Nexus edition |
port |
|
| Old server |
Centos7.7 |
V3.* |
8081 |
| New server |
Centos7.9 |
V3.* |
8081 |
Nexus It mainly consists of two parts , Installation directory and data directory ,nexus The migration only needs to copy two directories from the old server to the new server .
Migration operations
1. Copy the old environment file to the corresponding directory of the new environment
Old environment directory
The installation directory :/opt/nexus3/
Data directory :/opt/sonatype-work/nexus3/
New environment Directory
The installation directory :/opt/nexus3/
Data directory :/home/nexus-data/
modify < The installation directory >/bin/nexus.vmoptions file , Custom data directory
-Dkaraf.data=/home/nexus-data -XX:LogFile=/home/nexus-data/log/jvm.log -Djava.io.tmpdir=/home/nexus-data/tmp
2. establish nexus user ( password nexus)
$ useradd nexus
$ passwd nexus
$ su - nexus
3. start-up nexus application
$ /opt/nexus3/bin/nexus start
If you view the log in real time, you can use run start-up
$ /opt/nexus3/bin/nexus run
4. Firewall settings ( A choice )
1) If you turn off the firewall :
$ systemctl stop firewalld
2) If open firewall
$ systemctl status firewalld # View firewall status
$ firewall-cmd --zone=public --list-ports # Check the port opening
$ firewall-cmd --zone=public --add-port=8081/tcp --permanent
$ firewall-cmd --reload # Refresh firewall settings
$ firewall-cmd --zone=public --list-ports
Verify whether the service is started successfully in the browser http://<ip>:8081
5. To configure nexus service , And set the power on self starting
$ vi /usr/lib/systemd/system
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
|
$ systemctl daemon-reload # Reload service profile
$ systemctl enable nexus # Set power on self start
$ systemctl start nexus
$ systemctl status nexus
Add :
-
How to find nexus Two file directories
1) The installation directory
# whereis nexus
nexus:/opt/nexus3/bin/nexus /opt/nexus3/bin/nexus.rc /opt/nexus3/bin/nexus.vmoptions
/opt/nexus3/bin/nexus by nexus The executable of , Judge nexus Installed in the /opt/nexus3 Under the table of contents
2) Data directory
# whereis nexus
nexus:/opt/nexus3/bin/nexus /opt/nexus3/bin/nexus.rc /opt/nexus3/bin/nexus.vmoptions
# cat /opt/nexus3/bin/nexus.vmoptions
....... -Dkaraf.data=../sonatype-work/nexus3 .......
# cd /opt/nexus3/bin/nexus.vmoptions/sonatype-work/nexus3
nexus3 Modify the port

版权声明
本文为[zhangjunli]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220122187614.html
边栏推荐
- Zabbix深度监控:多款开源工具构建企业监控新架构
- Shell 集群免密关机
- Vnpy chapter of quantitative trading - synchronization module avoids self transaction risk and adds synchronization completion prompt
- 05 Lua 控制结构
- flask-基础代码
- Isla Obscura 深海生物系列 NFT 上架市场平台
- Automatic multiorgan segmentation in thorax CT images using U-net-GAN
- oracle安装server端
- 阿里大牛整理,android面试选择题
- The rainbow in the sky is beautiful
猜你喜欢
随机推荐
【无标题】
Why is the video exported by PR purple?
Landing example: take you to disassemble DDD in six steps
Detailed explanation of network model LSTM model content
计算机网络安全技术学习总结
Investigator靶機滲透測試
Flash basic code
php.ini Module ‘redis‘ already loaded in Unknown on line 0
Zabbix深度监控:多款开源工具构建企业监控新架构
MSF系列——简介及基本命令使用
DVWA系列——XSS(跨站脚本注入(反射型,储存型,DOM))
贼厉害,最新Android面试合集
Compiled vs interpreted, dynamic vs static
JS implementation of gin callback function syntax & class usage of ES6 & how to implement JS click callback function print e
[PRANET] paper code interpretation (loss function) - Blank
floyd求最小环 模板
春招高频面试题:怎样设计秒杀系统?
网络模型 LSTM模型内容详解
Blazor University (12) - component lifecycle
DVWA系列 —— SQL injection(注入)





![[several common buttons in swing]](/img/65/18c844d903746512282d65242dd45b.png)


