sudo apt update
java -version
sudo apt search openjdk
sudo apt install openjdk-17-jdk
ls -lsa /usr/lib/jvm
which java
ls -lsa /usr/bin/java
ls -lsa /etc/alternatives/java
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
#!/bin/bash | |
# Function to rename JavaScript files to TypeScript | |
rename_js_to_ts() { | |
for file in "$1"/*.js; do | |
if [ -e "$file" ]; then | |
new_file="${file%.js}.ts" | |
mv "$file" "$new_file" | |
echo "Renamed $file to $new_file" | |
fi |
You can see my latest update in my blog here https://medium.com/@calvin.hsieh/steps-to-install-mongodb-on-aws-ec2-instance-62db66981218
Credits:
- https://eladnava.com/deploy-a-highly-available-mongodb-replica-set-on-aws/
- http://www.serverlab.ca/tutorials/linux/database-servers/how-to-create-mongodb-replication-clusters/
Big thanks to Elad Nava and Shane Rainville for writing the above articles that allow me to conduct this guide. If by all means that I violated original post's copyright, please contact me.