Change default password
For current login user
For the root
Update System
Installing Git
1
|
$ sudo yum install git -y
|
Generate ssh key & view public key
Installing ZSH + Oh-my-zsh
1
|
$ sudo yum install zsh -y
|
Change Shell
1
|
$ sudo chsh -s /usr/bin/zsh $USER
|
Install oh-my-zsh (Optional)
1
|
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
Installing Go 1.8
1
2
|
curl -LO https://go.dev/dl/go1.18beta1.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.18beta1.linux-amd64.tar.gz
|
Update .bashrc or .zshrc
1
2
3
4
|
#.bashrc or .zshrc
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
|
Install Swag
1
2
3
4
|
curl -LO https://github.com/swaggo/swag/releases/download/v1.8.5/swag_1.8.5_Linux_x86_64.tar.gz
tar -zxf swag_1.8.5_Linux_x86_64.tar.gz
sudo mv swag /opt/swag/swag
sudo ln -s /opt/swag /usr/bin/swag
|
Installing Nginx
1
2
|
sudo yum install epel-release -y
sudo yum install nginx -y
|
1
2
|
sudo systemctl start nginx
sudo systemctl enable nginx
|
Installing Firewalld
1
2
3
|
sudo dnf install firewalld -y
sudo systemctl enable firewalld
sudo systemctl start firewalld
|
1
2
3
4
5
6
7
|
sudo firewall-cmd --permanent --zone=public --add-service=http
sudo firewall-cmd --permanent --zone=public --add-service=https
sudo firewall-cmd --reload
sudo firewall-cmd --zone=public --add-port=<PORT>/tcp
sudo firewall-cmd --permanent --zone=public --add-port=<PORT>/tcp
sudo firewall-cmd --reload
|
Show opening ports:
1
|
sudo lsof -i -P -n | grep LISTEN
|
Kill process running on port:
Installing MongoDB 5.x
Config the package management system
1
|
sudo vi /etc/yum.repos.d/mongodb-org-5.x.repo
|
1
2
3
4
5
6
|
[mongodb-org-5.x]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/5.0/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-5.0.asc
|
Install
1
|
sudo yum install -y mongodb-org
|
Lanch MongoDB
1
2
|
sudo systemctl start mongod
sudo systemctl enable mongod
|
Installing Visual Studio Code
Import the Microsoft GPG key
1
|
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
|
Edit Yum repository
1
|
sudo vi /etc/yum.repos.d/vscode.repo
|
1
2
3
4
5
6
7
|
# Content of etc/yum.repos.d/vscode.repo
[code]
name=Visual Studio Code
baseurl=https://packages.microsoft.com/yumrepos/vscode
enabled=1
gpgcheck=1
gpgkey=https://packages.microsoft.com/keys/microsoft.asc
|
Install
1
|
sudo yum install code -y
|
Installing Redis
1
|
sudo yum install redis -y
|
Start Redis
1
2
|
sudo systemctl start redis
sudo systemctl enable redis
|
Clean Redis
Deletes all keys from all databases.
1
|
sudo redis-cli flushall
|
Deletes all keys from the connection’s current database.