Update system after installed
sudo apt update && sudo apt -y upgrade
Install required packages
sudo apt -y install software-properties-common
sudo apt -y install curl git unzip perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python curl openssh-server
Redis & Memcache
sudo apt -y redis redis-server redis-tools memcached
MySQL 8.0
sudo apt -y install mysql-client mysql-sandbox mysql-server mysql-testsuite
sudo /etc/init.d/mysql restart
sudo mysql_secure_installation
Authentication
sudo mysql -u root
USE mysql;
UPDATE user SET plugin='mysql_native_password' WHERE User='root';
ALTER USER 'root'@'localhost' IDENTIFIED BY 'root';
FLUSH PRIVILEGES;
exit;
In MySQL 8.0,
MySQL 8.0 authenticationcaching_sha2_password
is the default authentication plugin rather thanmysql_native_password
, which was the default in MySQL 5.7.
MongoDB
https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/
wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list
sudo apt update && sudo apt install -y mongodb-org
sudo systemctl restart mongod