反向代理
負(fù)載均衡
動靜分離
nginx是一個(gè)高性能的http和反向代理web服務(wù)器
Linux下安裝nginx
./nginx 啟動
./nginx -s stop
./nginx -s quit
./nginx -s reload
ps aux | grep nginx
[root@centos7 ~]# service firewalld start
[root@centos7 ~]# service firewalld restart
[root@centos7 ~]# service firewalld stop
[root@centos7 ~]# firewalld-cmd reload
[root@centos7 ~]# firewalld-cmd --list-all 查看防火墻規(guī)則
[root@centos7 ~]# firewalld-cmd --query-port=8080/tcp 檢查端口是否開放
[root@centos7 ~]# firewalld-cmd --permanent --add-port=3306/tcp 開放3306端口
[root@centos7 ~]# firewalld-cmd --permanent --remove-port=3306/tcp 移除3306端口
firewalld-cmd 是Linux提供的操作防火墻的一個(gè)工具
--permanent 表示設(shè)置為持久