nginx
AndyYuan10000
这个作者很懒,什么都没留下…
展开
-
Nginx学习-环境搭建
第一步骤:编译之前需要确保系统中安装了gcc、openssl-devel、pcre-devel、zlib-devel库 第二步:cd到nginx目录依次执行”./configure“、”make“、”make install“指令 第三步:nginx启动、重启、关闭 一、启动 cd usr/local/nginx/sbin ./nginx 二、重启 更改配置重启nginx原创 2015-07-31 17:19:30 · 692 阅读 · 2 评论 -
配置Nginx反向代理Tomcat
1. 前期准备 nginx 安装成功 tomcat 安装成功 2. 更改nginx的配置文件 更改nginx.conf文件,在http/server/location层次结构下,添加proxy_pass http://localhost:7080; 一句话即可。注意不要放了;结尾。 3.删除 location / 节点,避免全部请求被拦截。新增 location ~ \.jsp$原创 2015-08-03 17:08:10 · 647 阅读 · 0 评论 -
解决Nginx: [error] open() "/usr/local/Nginx/logs/Nginx.pid
[root@localhost sbin]# ./nginx -s reload nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file or directory) 解决方法: [root@localhost nginx]# /usr/local/nginx/sbin/nginx -c /u原创 2015-08-03 16:59:06 · 4742 阅读 · 0 评论 -
python 爬虫 爬下图片
#!/usr/bin/env python # -*- coding: utf-8 -*- import urllib.request from bs4 import BeautifulSoup def crawl(url): headers = {'User-Agent':'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.原创 2015-08-05 15:27:04 · 750 阅读 · 0 评论 -
nginx
nginx 安装原创 2016-01-22 11:31:40 · 497 阅读 · 0 评论 -
Linux nginx安装和对tomcat配置
linux下nginx安装1.下载nginx包nginx-1.9.9.tar.gz 2.解压 tar -zxvf nginx-1.9.9.tar.gz 3.设置配置参数 - cd目录为/root/NGINX/nginx-1.9.9 - ./configure –prefix=/usr/local/nginx 3.编译并安装 make && make install 4.出现错误解决原创 2016-08-30 17:16:56 · 673 阅读 · 2 评论