Centos7.3安装nexus-3.14.0-04

nexus-3.14.0-04的安装

 

    nexus-3.14.0-04-unix.tar.gz

            1、下载nexus

            2、上传到服务器/root/

            3.解压

                tar -zxvf nexus-3.14.0-04-unix.tar.gz -C /usr/local/

            4.修改配置文件

                vim /usr/local/nexus-3.14.0-04/etc/nexus-default.properties

            修改对应的端口

                修改防火墙

                vim /etc/sysconfig/iptables

                -A INPUT -m state --state NEW -m tcp -p tcp --dport 8081 -j ACCEPT

            重启防火墙

                service iptables restart

            增加nexus用户

                并将目录所有权改为nexus

                    启动nexus服务

                    /usr/local/nexus-3.14.0-04/bin/nexus start

                    useradd nexus

                    chown -R nexus:nexus /usr/local/nexus-3.14.0-04/

                    chown -R nexus:nexus /usr/local/sonatype-work/

                    su nexus

                    /usr/local/nexus-3.14.0-04/bin/nexus start

                    Nexus data directory already in use: /usr/local/sonatype-work/nexus3

                    /usr/local/nexus-3.14.0-04/bin/nexus stop

                    /usr/local/nexus-3.14.0-04/bin/nexus run

                    /usr/local/nexus-3.14.0-04/bin/nexus status

                    查看监听是否打开

                    netstat -lntp

            5.浏览器打开并登陆

                http://192.168.233.154:8081/

                注意:打开使用google浏览器,这样才会打开,使用360浏览器,会卡到loading中

                账号admin

                密码 admin123

                System Requirement: max file descriptors [4096] likely too low, increase to at least [65536].

            6.修改ulimit

                vim /etc/security/limits.conf

            新增

                * soft nofile 65535

                * hard nofile 65535

        7.配置开机自启动

                su - nexus -c '/usr/local/nexus-3.14.0-04/bin/nexus start'

posted @ 2018-11-26 19:32  心目  阅读(...)  评论(...编辑  收藏