su root
【jdk1.8】
wget https://repo.huaweicloud.com/java/jdk/8u202-b08/jdk-8u202-linux-x64.tar.gz
tar -zxvf jdk-8u202-linux-x64.tar.gz
vim /etc/profile
export JAVA_HOME=/root/jdk1.8.0_202/
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$JAVA_HOME/bin:$PATH
source /etc/profile
java -version
【mysql5.7】
wget https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-server_5.7.21-1debian9_amd64.deb-bundle.tar
tar -xvf mysql-server_5.7.21-1debian9_amd64.deb-bundle.tar
apt install libaio1 libnuma1 libmecab2 -y
dpkg -i mysql-common_5.7.21-1debian9_amd64.deb
dpkg -i mysql-community-client_5.7.21-1debian9_amd64.deb
dpkg -i mysql-client_5.7.21-1debian9_amd64.deb
dpkg -i mysql-community-server_5.7.21-1debian9_amd64.deb
dpkg -i mysql-server_5.7.21-1debian9_amd64.deb
cd /etc/mysql/mysql.conf.d/
vim mysqld.cnf
bind-address = 0.0.0.0
character_set_server=utf8
init_connect='SET NAMES utf8'
systemctl restart mysql
【nginx】
apt install nginx
【redis】
apt install redis-server redis-tools
vim /etc/redis/redis.conf
bind 127.0.0.1 修改为 0.0.0.0
daemonize no 修改为 yes
protected-mode yes 修改为no,不然其他主机仍然无法访问Redis
# requirepass foobared 取消注释同时设置密码
systemctl restart redis-server