Тёмный
No video :(

How to Install Nexus Repository Manager on Ubuntu 22.04 

MivoCloud
Подписаться 1,6 тыс.
Просмотров 3,5 тыс.
50% 1

Nexus is one of the most popular repository managers in the DevOps world. It allows you to store and retrieve build artifacts and also provides features to push and pull artifacts via CI and IDE integration tools such as Visual Studio and Jenkins.
Using Nexus as a repository, allows your developers to get and manage packages on the centralized repository manager, which also gives the developers team a single source of truth for every package.
In this video, we will explain how to install the Nexus Repository Manager on a Ubuntu 22.04 server. This tutorial also includes the installation of some packages such as Java OpenJDK and Nginx web server that will be used as a reverse proxy.
Useful Links:
VPS/VDS - www.mivocloud....
Nexus - www.sonatype.c...
Commands Used:
sudo apt install openjdk-8-jdk
java -version
sudo useradd -d /opt/nexus -s /bin/bash nexus
sudo passwd nexus
ulimit -n 65536
sudo nano /etc/security/limits.d/nexus.conf
nexus - nofile 65536
wget download.sonat...
tar xzf nexus-3.41.1-01-unix.tar.gz
mv nexus-3.41.1-01 /opt/nexus
mv sonatype-work /opt/
chown -R nexus:nexus /opt/nexus /opt/sonatype-work
sudo nano /opt/nexus/bin/nexus.rc
run_as_user="nexus"
sudo nano /opt/nexus/bin/nexus.vmoptions
-Xms1024m
-Xmx1024m
-XX:MaxDirectMemorySize=1024m
sudo nano /etc/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
sudo systemctl daemon-reload
sudo systemctl start nexus.service
sudo systemctl enable nexus.service
sudo systemctl status nexus.service
sudo apt install nginx -y
sudo systemctl is-enabled nginx
sudo systemctl status nginx
sudo nano /etc/nginx/sites-available/nexus
upstream nexus3 {
server 127.0.0.1:8081;
}
server {
listen 80;
server_name NAME;
location / {
proxy_pass nexus3/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forward-Proto http;
proxy_set_header X-Nginx-Proxy true;
proxy_redirect off;
}
}
sudo ln -s /etc/nginx/sites-available/nexus /etc/nginx/sites-enabled/
sudo nginx -t
sudo systemctl restart nginx

Опубликовано:

 

29 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 11   
@avinash.h2
@avinash.h2 5 месяцев назад
I can't thank you enough dude!! I'm through! No other video worked for me
@MivoCloud
@MivoCloud 5 месяцев назад
Thanks for the kind words, don't forget to subscribe :)
@helioradial
@helioradial 3 месяца назад
Fantastic work dude, thank you! Appreciate the time you have put into this.
@MivoCloud
@MivoCloud 3 месяца назад
Thank you for the kind words!
@helioradial
@helioradial 3 месяца назад
@@MivoCloud any chance we can see some repo videos for both apt and yum? :D
@MivoCloud
@MivoCloud 2 месяца назад
@@helioradial Greetings! In the future, I may shoot such a video :)
@primenetwork27
@primenetwork27 Год назад
First
@Naveen_R26
@Naveen_R26 7 месяцев назад
hey i have tried and followed all the steps as u mentioned but its not exposing via my public ip ? what might be the issue
@MivoCloud
@MivoCloud 7 месяцев назад
Hello! Did you download the latest version of Nexus?
@FiiguriinhA
@FiiguriinhA 3 месяца назад
What is the machine configuration? CPU/Memory?
@MivoCloud
@MivoCloud 3 месяца назад
Hello! It was a long time ago and I don't remember exactly, but as a rule I use VPS with characteristics - 3 cores, 3 GB of RAM and 32+ GB of memory
Далее
How To Choose a Linux Distribution
8:14
Просмотров 95 тыс.
QEMU/KVM for absolute beginners
17:50
Просмотров 531 тыс.
Chelsea gym be like.. 😅⚽️
00:20
Просмотров 15 млн
I forced EVERYONE to use Linux
22:59
Просмотров 478 тыс.
how did I NOT know about this?
23:06
Просмотров 912 тыс.
ThePrimeagen On Running Linux
9:40
Просмотров 240 тыс.
5 Things To Do Right After Installing Linux
11:15
Просмотров 37 тыс.
The cloud is over-engineered and overpriced (no music)
14:39
Using docker in unusual ways
12:58
Просмотров 442 тыс.