• Centos7.3安装nexus12.1


    nexus.12.1-01的安装

                1、下载nexus

                2、上传到服务器/root/

                3.解压

                    tar -zxvf nexus-3.12.1-01-unix.tar.gz -C /usr/local/

                4.修改配置文件

                    vim /usr/local/nexus-3.12.1-01/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.12.1-01/bin/nexus start

                        useradd nexus

                        chown -R nexus:nexus /usr/local/nexus-3.12.1-01/

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

                        su nexus

                        /usr/local/nexus-3.12.1-01/bin/nexus start

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

                        /usr/local/nexus-3.12.1-01/bin/nexus stop

                        /usr/local/nexus-3.12.1-01/bin/nexus run

                        /usr/local/nexus-3.12.1-01/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.12.1-01/bin/nexus start'

  • 相关阅读:
    python的mysql-connector和pymysql
    java知识整理
    Spring——使用自定义标签
    Eclipse maven 错误修正方法:An error occurred while filtering resources
    设计模式--模板模式
    编译Spring源码
    Lunix 命令
    (转)设计模式——策略模式
    JVM(一)
    SenjuFamily项目总结 之 Activiti 学习总结(一)
  • 原文地址:https://www.cnblogs.com/programer-xinmu78/p/10022369.html
Copyright © 2020-2023  润新知