The blogger’s ubuntu version is Ubuntu 16.04.2 and uses Alibaba cloud server, which is also available after configuration by Amazon and Tencent.
Upgrade the packages in your ubuntu to the latest.
apt-get update
View current version
python -V
Switch version
python2
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 100
python3
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 150
Install pip module
wget https://bootstrap.pypa.io/get-pip.py --no-check-certificate
sudo python get-pip.py
Install Redis
apt-get install redis-server
Enable redis remote access
bind 0.0.0.0 #Comment out or change ip to 0.0.0.0
Configure redis authentication password to increase security is not local access after all
# requirepass foobared find this
requirepass 123456 #Remove the comment and modify the password you want
The most important one is that we need to restart our redis-server service so that its configuration can run
/etc/init.d/redis-server stop #stop
/etc/init.d/redis-server start #start up
/etc/init.d/redis-server restart #Reboot
Install Mysql, you need to set your password during the process, and the user name is root by default
apt-get install mysql-server
To be continued
Recommended Posts