다운로드 및 압축 해제
경로 : ~/dynamodb
# download package
curl -O https://s3.ap-south-1.amazonaws.com/dynamodb-local-mumbai/dynamodb_local_latest.tar.gz
# create target directory
mkdir dynamodb
# uncompress to target directory
tar -xvf dynamodb_local_latest.tar.gz -C ~/dynamodb
.zprofile (쉘 시작시 실행 됨)
시작/종료 함수 추가
# .zprofile
DYNAMODB_PATH=~/dynamodb
dynamodb_start() {
nohup java -Djava.library.path=$DYNAMODB_PATH/DynamoDBLocal_lib -jar $DYNAMODB_PATH/DynamoDBLocal.jar -dbPath $DYNAMODB_PATH -sharedDb >/dev/null 2>&1 &
echo $! > $DYNAMODB_PATH/DynamoDBLocal.pid
}
dynamodb_stop() {
DYNAMO_PID=$(cat $DYNAMODB_PATH/DynamoDBLocal.pid)
if [ -z "$DYNAMO_PID" ]
then
echo "$DYNAMODB_PATH/DynamoDBLocal.pid file is empty"
else
echo "kill $DYNAMO_PID"
kill $DYNAMO_PID
fi
}
'Linux' 카테고리의 다른 글
Find Primary IP Address of a Linux Machine (0) | 2023.09.07 |
---|---|
Getting Started With Pacman Commands in Arch-based Linux (0) | 2023.09.06 |
wrk - a HTTP benchmarking tool (1) | 2023.06.05 |
VirtualBox 에서 우분투 7.10 server 설치시 "PANIC: CPU too old for this kernel" 메시지 (3) | 2008.01.14 |
VirtualBox - Windows의 네트워크 브리지를 사용한 네트워크 구성(NAT 사용) (0) | 2007.12.17 |