Nginx知识图谱
2023-12-27 15:02:15 举报
AI智能生成
登录查看完整内容
相似推荐
查看更多
知识图谱
知识组织与知识图谱
知识图谱 | 医学知识图谱构建流程
知识图谱
知识图谱相关图
电商超齐全知识图谱
知识图谱
知识图谱 | 知识图谱构建技术路线
知识图谱
小学数学知识图谱
作者其他创作
大纲/内容
\tyum -y install nginx
systemctl start nginx.service
systemctl stop nginx.service
systemctl restart nginx.service
systemctl enable nginx.service
ps -A|grep nginx
http://ip地址
yum
wget http://nginx.org/download/nginx-1.12.2.tar.gz
useradd nginx
mkdir /usr/local/nginx
yum -y install pcre-devel openssl openssl-devel
tar -zxf nginx-1.12.2.tar.gz\tcd nginx-1.12.2\t./configure --prefix=/usr/local/nginx --user=nginx --with-http_ssl_module\tmake\tmake install
nginx -c /usr/local/nginx/conf/nginx.conf
firewall-cmd --permanent --add-port=80/tcp\tfirewall-cmd --reload
http:/ip
编译安装
安装
Nginx
Apache
Apache Tomcat (Java EE)
Jetty (Java EE)
开源
Microsoft IIS
IBM Webspare (Java EE)
Oracle Weblogic (Java EE)
商业
常见Web Server
1. 进行合理的规划: 规定每个服务器所扮演的角色.
4. 重新启动Nginx
5. 客户端配置域名解析
nginx.conf
配置
1.配置Nginx
2. 测试 重新启动nginx
4. 测试: 用浏览器访问这两个域名.
阿里云配置Nginx转发到Tomcat
1. 轮询(默认)
2.指定权重
3. ip_hash
4. fair(第三方)
5. url_hash(第三方)
Nginx 集群转发策略
反向代理集群
1. 下载证书文件到 /usr/local/nginx/conf/cert
3. 重新启动Nginx
4. 在客户端配置域名解析
5. 利用客户端访问 https://tts.canglaoshi.org
niginx.conf
HTTPS加密通讯
请求 t1.canglaoshi.org 访问 t1文件夹 index.html文件 server{ listen 80; server_name t1.canglaoshi.org; location / { root t1; index index.html; } }
在Nginx文件夹/usr/local/nginx中添加新文件夹t1和文件index.html
测试:\thttp://t1.canglaoshi.org
虚拟主机
nginx配置文件位置
1. worker_processes
2.worker_connections
3. pid
4.access_log
全局通用参数
1. ContentType
2. keepalive
3.gzip on
http通用参数
Nginx配置文件结构
Nginx知识图谱
0 条评论
回复 删除
下一页