DEV Community

Cover image for Ubuntu 22.04 NEXUS OSS Kurulumu
Doğukan Eren for Açıklab

Posted on • Edited on

6

Ubuntu 22.04 NEXUS OSS Kurulumu

OpenJDK paketini sistemimize kuralım

sudo apt install openjdk-8-jdk

Enter fullscreen mode Exit fullscreen mode

Sonrasında kurulum dosyasını indirelim.

wget https://download.sonatype.com/nexus/3/latest-unix.tar.gz
Enter fullscreen mode Exit fullscreen mode

Aşağıdaki komutla tar.gz dosaysından çıkrtalım

tar -xf latest-unix.tar.gz

sudo mv nexus-* /opt/nexus

Enter fullscreen mode Exit fullscreen mode

Servis dosyasını oluşturalım

sudo nano /etc/systemd/system/nexus.service
Enter fullscreen mode Exit fullscreen mode

Servis dosyasını aşağıdaki gibi düzenleyip kayıt edelim.

[Unit]
Description=Nexus Repository Manager
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

Enter fullscreen mode Exit fullscreen mode

Aşağıdaki script ile gerekli klasörü ve kullanıcıyı oluşturup, yetkilerini verelim.

mkdir /opt/sonatype-work

sudo adduser --disabled-login nexus
sudo chown -R nexus:nexus /opt/nexus
sudo chown -R nexus:nexus /opt/sonatype-work
Enter fullscreen mode Exit fullscreen mode

Servisi başlatalım ve reboot sonrası yeniden başlayacak şekilde ayarlayalım.

sudo systemctl start nexus
sudo systemctl enable nexus
Enter fullscreen mode Exit fullscreen mode

Arayüzün yüklenmesini bir süre bekledikten sonra

http://localhost:8081 adresinden uygulamanın web arayüzüne erişebilirsiniz

Parola bilgisini aşağıdaki komut ile kontrol edebilirsiniz

cat /opt/sonatype-work/nexus3/admin.password
Enter fullscreen mode Exit fullscreen mode

Image of Timescale

Timescale – the developer's data platform for modern apps, built on PostgreSQL

Timescale Cloud is PostgreSQL optimized for speed, scale, and performance. Over 3 million IoT, AI, crypto, and dev tool apps are powered by Timescale. Try it free today! No credit card required.

Try free

Top comments (0)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay