Last active
May 14, 2021 16:50
-
-
Save pracps/49d9b7f406db1308fcc02663e419b347 to your computer and use it in GitHub Desktop.
ElasticSearch Dev Enviornment Setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install git, vim | |
# instance => e2-standard-4 (4 vCPU, 16GB Memory) | |
# Copy all jdks into a folder | |
gcloud compute copy-files ./* els:/home/touchps/softwares/jdk --zone "us-central1-a" | |
# add git prompt from following | |
# https://github.com/git/git/blob/master/contrib/completion/git-prompt.sh | |
# Increase the inotify limit | |
# cat /proc/sys/fs/inotify/max_user_watches | |
# 8192 | |
# put fs.inotify.max_user_watches=524288 in /etc/sysctl.conf | |
# reload: sudo sysctl -p | |
# cat /proc/sys/fs/inotify/max_user_watches | |
# 524288 | |
# Bash RC | |
export JAVA_HOME=/usr/local/lib/jvm/jdk-15 | |
export JAVA8_HOME=/usr/local/lib/jvm/jdk1.8.0_291 | |
export JAVA9_HOME=/usr/local/lib/jvm/jdk-9.0.4 | |
export JAVA10_HOME=/usr/local/lib/jvm/jdk-10.0.2 | |
export JAVA11_HOME=/usr/local/lib/jvm/jdk-11.0.11 | |
export JAVA12_HOME=/usr/local/lib/jvm/jdk-12.0.2 | |
export JAVA13_HOME=/usr/local/lib/jvm/jdk-13.0.2 | |
export JAVA14_HOME=/usr/local/lib/jvm/jdk-14.0.2 | |
export JAVA15_HOME=/usr/local/lib/jvm/jdk-15 | |
export PATH="$PATH:$JAVA_HOME/bin" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment