wget http://www.sonatype.org/downloads/nexus-latest-bundle.tar.gz --no-check-certificate
tar zxvf nexus-latest-bundle.tar.gz
cp /nexus-2.14.18-01/bin/nexus /etc/init.d/nexus
vi /etc/init.d/nexus
#NEXUS_HOME=".."
NEXUS_HOME="/home/nexus/nexus-2.14.18-01"
#RUN_AS_USER=
RUN_AS_USER=nexus
#PIDDIR="."
PIDDIR="/home/nexus"
bash shell을 사용하고 있어 /etc/profile 에 설정 추가
vi /etc/profile
내용 : /etc/profile, ~/.bash_profile, ~/.bash_login ... 순으로 찾으며, 먼저 읽어들인 파일에 설정된 값을 사용한다.
it first reads and executes commands from the file /etc/profile, if that file exists. After reading that file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile, in that order, and reads and executes commands from the first one that exists and is readable.
export NEXUS=/home/nexus/nexus-2.14.18-01
PATH=$PATH:$JAVA_HOME/bin:$NEXUS/bin
source /etc/profile
service nexus start
ps -ef | grep nexus
vi /home/계정/nexus-2.14.18-01/conf
bash shell - https://www.gnu.org/software/bash/manual/html_node/Bash-Startup-Files.html
RabbitMQ 관리자 콘솔 설정 (0) | 2024.02.23 |
---|
댓글 영역