rpm -qa | grep MariaDB
create user dev@localhost identified by 'psw321';
grant all privileges on *.* to dev@'%' identified by 'psw321';
systemctl start mariadb #启动服务
systemctl enable mariadb #设置开机启动
systemctl restart mariadb #重新启动
systemctl stop mariadb.service #停止MariaDB
#安装nginx
wget http://nginx.org/download/nginx-1.16.0.tar.gz
tar zxvf nginx-1.16.0.tar.gz
cd nginx-1.16.0
./configure --prefix=/hq/nginx --with-http_stub_status_module --with-http_ssl_module
make && make install
Nginx启动
nginx -c nginx.conf
systemctl status nginx.service
命令2:netstat -antp | grep :80(查看80端口被哪个服务占用
systemctl start nginx.service 启动nginx
systemctl stop nginx.service 结束nginx
systemctl restart nginx.service 重启nginx
./nginx -s stop 结束nginx
./nginx -t 验证nginx配置文件是否正确
service nginx start
pkill -9 nginx 结束nginx
systemctl start redis.service
密码:psw321
/etc/redis.conf
systemctl restart redis.service
redis-cli -h 127.0.0.1 -p 6379 -a "psw321"