관리 메뉴

Sysops Notepad

[Linux] Centos 7 Sonatype Nexus Repository 설치하기(2) 본문

업무/etc

[Linux] Centos 7 Sonatype Nexus Repository 설치하기(2)

sysops 2020. 10. 7. 13:25

# yum install -y epel-release

 

# yum repolist

 

# yum install nginx

 

# systemctl enable nginx

 

# systemctl status nginx

 

# systemctl start nginx

 

# yum install certbot python2-certbot-nginx

 

# certbot --nginx

# vim /etc/nginx/nginx.conf

location / {

      proxy_pass "http://127.0.0.1:8081";
      proxy_set_header        Host $host;
      proxy_set_header        X-Real-IP $remote_addr;
      proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
      proxy_set_header        X-Forwarded-Proto $scheme;
      proxy_set_header        X-Forwarded-Ssl on;
      proxy_read_timeout      300;
      proxy_connect_timeout   300;

 }

# systemctl restart nginx

 

# cat /opt/nexusdata/nexus3/admin.password

 

 

 

출처 : www.fosslinux.com/27838/installing-sonatype-nexus-repository-oss-on-centos-7.htm

Comments