Nexus — различия между версиями
Материал из pNp Wiki
Suser (обсуждение | вклад) (Новая страница: «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…») |
Suser (обсуждение | вклад) (→Centos 8) |
||
| (не показано 10 промежуточных версий этого же участника) | |||
| Строка 1: | Строка 1: | ||
| − | yum install java-1.8.0-openjdk | + | == Centos 7 == |
| + | yum install java-1.8.0-openjdk | ||
| − | cd /opt | + | cd /opt |
| + | wget https://download.sonatype.com/nexus/3/latest-unix.tar.gz | ||
| − | + | tar xzpf latest-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 | |
| − | http://10. | + | == Centos 8 == |
| − | admin: | + | dnf install java-1.8.0-openjdk-headless tar |
| + | |||
| + | adduser nexus -d /opt/sonatype-work/ -s /sbin/nologin | ||
| + | |||
| + | vi /usr/lib/systemd/system/nexus.service | ||
| + | |||
| + | [Unit] | ||
| + | Description=nexus service | ||
| + | After=network.target | ||
| + | |||
| + | [Service] | ||
| + | Type=forking | ||
| + | LimitNOFILE=65536 | ||
| + | ExecStart=/opt/nexus/bin/nexus start | ||
| + | ExecStop=/opt/nexus/bin/nexus stop | ||
| + | User=nexus | ||
| + | Restart=on-abort | ||
| + | |||
| + | [Install] | ||
| + | WantedBy=multi-user.target | ||
| + | |||
| + | cd /opt | ||
| + | wget wget https://download.sonatype.com/nexus/3/latest-unix.tar.gz | ||
| + | |||
| + | tar xzpf latest-unix.tar.gz | ||
| + | ln -s nexus-'''3.22.1-02''' nexus | ||
| + | chown -R nexus:nexus /opt/sonatype-work/ | ||
| + | |||
| + | systemctl --now enable nexus | ||
| + | |||
| + | http://'''10.10.10.10''':8081/ | ||
| + | login: admin | ||
| + | password: cat /opt/sonatype-work/nexus3/admin.password | ||
Текущая версия на 10:51, 29 июня 2022
Centos 7
yum install java-1.8.0-openjdk
cd /opt wget https://download.sonatype.com/nexus/3/latest-unix.tar.gz
tar xzpf latest-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-1.8.0-openjdk-headless tar
adduser nexus -d /opt/sonatype-work/ -s /sbin/nologin
vi /usr/lib/systemd/system/nexus.service
[Unit] Description=nexus service After=network.target [Service] Type=forking LimitNOFILE=65536 ExecStart=/opt/nexus/bin/nexus start ExecStop=/opt/nexus/bin/nexus stop User=nexus Restart=on-abort [Install] WantedBy=multi-user.target
cd /opt wget wget https://download.sonatype.com/nexus/3/latest-unix.tar.gz
tar xzpf latest-unix.tar.gz ln -s nexus-3.22.1-02 nexus chown -R nexus:nexus /opt/sonatype-work/
systemctl --now enable nexus
http://10.10.10.10:8081/ login: admin password: cat /opt/sonatype-work/nexus3/admin.password