# 下载包
yum -y update --downloadonly --downloaddir=/package/update/
yum -y install nginx --downloadonly --downloaddir=/package/nginx/
wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm
yum -y install mysql57-community-release-el7-10.noarch.rpm
yum -y install mysql-community-server --downloadonly --downloaddir=/package/mysql/
yum -y install redis --downloadonly --downloaddir=/package/redis
-------------------------------------------------------------------- 安装
sudo ln -sf /usr/lib64/libLLVM-7.0.0.so /usr/lib64/libLLVM-7.so
# 解压
tar -xvf mini.tar.gz
# 离线安装
rpm -Uvh --force --nodeps *.rpm
# 启动Nginx并设置开机自动运行
sudo systemctl start nginx
sudo systemctl enable nginx
vim /etc/nginx/nginx.conf
Nginx常用命令
nginx -t
检查配置文件是否正确,在每次修改nginx配置后执行命令进行查看。
nginx -s reload
这个命令大家肯定非常熟悉,重启nginx服务。
systemctl start mysqld.service
systemctl status mysqld.service
grep "password" /var/log/mysqld.log
mysql -uroot -p
systemctl start redis
systemctl enable redis
ps -ef |grep redis
redis-cli -h 127.0.0.1 -p 6379
标签:实战,nginx,部署,麒麟,redis,--,systemctl,yum,mysql
From: https://www.cnblogs.com/sunchenxuan/p/17683926.html