nexus-2.1.2

nexus-2.1.2

introduction

install nexus

you can download nexus from http://www.sonatype.org/nexus/ here we use nexus-on-jetty version

add nexus-2.1.2-bundle\nexus-2.1.2\bin to environment variable "path"

change nexus-2.1.2-bundle\nexus-2.1.2\bin\jsw\conf\wrapper.conf like this:

# Set the JVM executable
# (modify this to absolute path if you need a Java that is not on the OS path)
wrapper.java.command=C:\Java\jdk1.6.0_22\bin\java

then use "nexus install" command to register service, and use "nexus start" command to start nexus.

finally we access nexus console by  http://localhost:8081/nexus/ (jetty default http port is 8081).

And click login, enter the following username=admin and password=admin123. You can have more operation.

nexus repository - private repository

nexus has the following repository

host repository - repository which you can deploy your project to it

proxy repository - remote repository

group repository - group mutil repository together

How To

how to configure nexus private repository

update central proxy repository indexes

configure mirror in apache-maven-3.0.4\conf\settings.xml

the following configuration will mirror all repository to nexus private repository.

    <mirror>
      <id>central</id>
      <mirrorOf>*</mirrorOf>
      <name>Human Readable Name for this Mirror.</name>
      <url>http://localhost:8081/nexus/content/repositories/central/</url>
    </mirror>

how to deploy your project to nexus

configure Deployment Policy

 

add distributionManagement element in your pom.xml

    <distributionManagement>
        
        <snapshotRepository>
            <id>user-snapshot</id>
            <name>User Project SnapShot</name>
            <url>http://localhost:8081/nexus/content/repositories/snapshots/</url>
        </snapshotRepository>
        
        <repository>
            <id>user-release</id>
            <name>User Project Release</name>
            <url>localhost:8081/nexus/content/repositories/releases/</url>
        </repository>
        
    </distributionManagement>

configure apache-maven-3.0.4\conf\settings.xml servers element

    <server>
      <id>user-snapshot</id>
      <username>deployment</username>
      <password>deployment123</password>
    </server>
    
    <server>
      <id>user-release</id>
      <username>deployment</username>
      <password>deployment123</password>
    </server>

then you can run pom.xml of your project to deploy project (command clean deploy).

转载于:https://www.cnblogs.com/toy-soldiers/archive/2012/09/06/2672776.html

datax-web-2.1.2是一个版本为2.1.2的DataX Web工具。要安装datax-web-2.1.2,您可以按照以下步骤进行操作: 1. 下载datax-web-2.1.2.tar.gz压缩包,并将其放置在服务器上。 2. 解压缩datax-web-2.1.2.tar.gz文件,可以使用命令:tar -zxvf datax-web-2.1.2.tar.gz。 3. 进入解压后的目录,并执行安装脚本。如果您想使用交互模式安装,可以运行./bin/install.sh命令,并按照提示填写MySQL信息。如果您不想使用交互模式,可以运行./bin/install.sh --force命令跳过确认过程。 4. 修改控制器datax-admin的配置文件,即./datax-web-2.1.2/modules/datax-admin/conf/application.yml文件。 5. 修改执行器datax-executor的配置文件,即./datax-web-2.1.2/modules/datax-executor/conf/application.yml文件。 6. 如果您的数据库还没有创建和授权,您可以按照以下步骤进行操作: - 使用MySQL 8.0及以上版本创建数据库:create database `datax-web` character set utf8mb4; - 创建用户并授权:CREATE USER 'datax'@'%' IDENTIFIED BY '111111'; grant all privileges on *.* to datax@'%' with grant option; - 修改用户密码:ALTER USER 'datax'@'%' IDENTIFIED WITH mysql_native_password BY '111111'; 7. 启动datax-web,进入./datax-web-2.1.2/bin目录,并执行./start-all.sh命令,即可同时启动控制器和执行器。如果您想单独启动,可以使用命令./start.sh -m datax-admin或./start.sh -m datax-executor。 请注意,以上步骤仅适用于datax-web-2.1.2版本。如果您使用的是其他版本,请参考相应的安装文档。 #### 引用[.reference_title] - *1* *2* *3* [datax与datax-web安装部署](https://blog.csdn.net/m0_71142057/article/details/124898812)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值