Nexus — различия между версиями

Материал из pNp Wiki
Перейти к: навигация, поиск
(Новая страница: «yum install java-1.8.0-openjdk cd /opt wget https://sonatype-download.global.ssl.fastly.net/repository/repositoryManager/3/nexus-3.12.0-01-unix.tar.gz tar xzpf…»)
 
Строка 1: Строка 1:
yum install java-1.8.0-openjdk
+
== Centos 7 ==
 +
yum install java-1.8.0-openjdk
  
cd /opt
+
cd /opt
 +
wget https://sonatype-download.global.ssl.fastly.net/repository/repositoryManager/3/nexus-3.12.0-01-unix.tar.gz
  
wget https://sonatype-download.global.ssl.fastly.net/repository/repositoryManager/3/nexus-3.12.0-01-unix.tar.gz
+
tar xzpf nexus-3.12.0-01-unix.tar.gz
 +
ln -s nexus-3.12.0-01 nexus
  
tar xzpf nexus-3.12.0-01-unix.tar.gz
+
vi  /usr/lib/systemd/system/nexus.service
ln -s nexus-3.12.0-01 nexus
+
systemctl enable nexus
  
nano /usr/lib/systemd/system/nexus.service
+
  adduser nexus
systemctl enable nexus
+
chown -R nexus:nexus /opt/sonatype-work/
  
adduser nexus
+
http://'''10.10.10.10''':8081/
chown -R nexus:nexus /opt/sonatype-work/
+
admin:admin123
  
http://10.4.10.2:8081/
+
== Centos 8 ==
admin:admin123
+
dnf install java-11-openjdk tar
 +
 
 +
cd /opt
 +
wget https://sonatype-download.global.ssl.fastly.net/repository/repositoryManager/3/nexus-3.12.0-01-unix.tar.gz
 +
 
 +
vi  /usr/lib/systemd/system/nexus.service
 +
systemctl enable nexus
 +
 
 +
adduser nexus
 +
chown -R nexus:nexus /opt/sonatype-work/
 +
 
 +
http://'''10.10.10.10''':8081/
 +
admin:admin123

Версия 09:40, 23 апреля 2020

Centos 7

yum install java-1.8.0-openjdk
cd /opt
wget https://sonatype-download.global.ssl.fastly.net/repository/repositoryManager/3/nexus-3.12.0-01-unix.tar.gz
tar xzpf nexus-3.12.0-01-unix.tar.gz
ln -s nexus-3.12.0-01 nexus
vi  /usr/lib/systemd/system/nexus.service
systemctl enable nexus
adduser nexus
chown -R nexus:nexus /opt/sonatype-work/
http://10.10.10.10:8081/
admin:admin123

Centos 8

dnf install java-11-openjdk tar
cd /opt
wget https://sonatype-download.global.ssl.fastly.net/repository/repositoryManager/3/nexus-3.12.0-01-unix.tar.gz
vi  /usr/lib/systemd/system/nexus.service
systemctl enable nexus
adduser nexus
chown -R nexus:nexus /opt/sonatype-work/
http://10.10.10.10:8081/
admin:admin123