linux系统下maven2私服搭建artifactory2
linux系统下maven2私服搭建artifactory2
首页
http://www.jfrog.org/products.php
下载得到文件
artifactory-2.0.4.zip
文档
http://wiki.jfrog.org/confluence/display/RTF/Installing
上传文件到/usr/tmp
解开压缩文件
unzip artifactory-2.0.4.zip
移动文件到工作目录
mv /usr/tmp/artifactory-2.0.4 /usr/local/artifactory
检查安装环境
ARTIFACTORY_HOME/bin/artifactoryctl check
安装
ARTIFACTORY_HOME/bin/install.sh
配置文件
vi /etc/artifactory/default
文件内容如下:
#Default values
export ARTIFACTORY_HOME=/usr/local/artifactory
#export ARTIFACTORY_USER=artifactory
export JAVA_HOME=/usr/java/jdk1.5.0_17
export ARTIFACTORY_CONSOLE=${ARTIFACTORY_HOME}/logs/consoleout.log
export JAVA_OPTIONS="-server -Xms300m -Xmx1g"
export ARTIFACTORY_HOME=/usr/local/artifactory
export ARTIFACTORY_USER=artifactory
启动命令
service artifactory start
/etc/init.d/artifactory start
查看日志
tail \-f $ARTIFACTORY_HOME/logs/artifactory.log
手工控制启动停止
artifactoryctl check|start|stop
访问应用
http://localhost:8081/artifactory