- 浏览: 931980 次
- 性别:
- 来自: 北京
文章分类
- 全部博客 (423)
- mysql (37)
- hibernate (3)
- struts (9)
- spring (33)
- dom4j (2)
- junit (0)
- exception (1)
- 随笔杂谈 (12)
- google app engine (1)
- XMPP (1)
- OAuth安全授权 (1)
- 版本控制 (8)
- 心情感悟 (0)
- core java (19)
- log4j (7)
- jquery (12)
- javascript (10)
- 网站性能优化及工具 (11)
- 服务器架设配置等 (38)
- EXT (4)
- 正则表达式 (5)
- 日志统计分析 (2)
- htmlparse (4)
- httpclient (5)
- java随笔 (5)
- dhtmlxtree (1)
- freemarke (5)
- memcached (6)
- javamail (5)
- Linux命令 (10)
- 应用监控cpu web jdbc等 (4)
- jmagick (9)
- 第三方缓存策略 (9)
- ORM (2)
- hadoop (2)
- 大数据量处理 (8)
- 经典 (1)
- 权限设计 (1)
- andriod (1)
- mybatis (12)
- redis (24)
- 数据结构_算法 (5)
- 分布式系统 (1)
- php (1)
- 网络编程 (3)
- 服务器部署 (3)
- ios (2)
- IM (23)
- mina (1)
- 视讯和语音 (1)
- 代码生成 (1)
- 架构 (4)
- 建模工具 (1)
- oracle (4)
- solr (10)
- 构建工具 (7)
- html5 (1)
- nginx (5)
- css (1)
- 大数据-分布式 (2)
- 设计模式 (2)
- mq (2)
- jvm调优 (8)
- 并发编程 (2)
- 搜索引擎 (1)
- UML (2)
最新评论
-
天使建站:
jquery获取网页里多选框checkbox选中项的值的方法及 ...
JS jQuery分别获取选中的复选框值 -
abao1:
发现一个小问题 sortAndSave方法中的for循环 第二 ...
完整java实现外部排序 -
西巴拉古呀那:
Kafka分布式消息系统实战(与JavaScalaHadoop ...
消息系统kafka介绍 -
kafodaote:
Kafka分布式消息系统实战(与JavaScalaHadoop ...
消息系统kafka介绍 -
成大大的:
Kafka分布式消息系统实 ...
消息系统kafka介绍
prefix指定路径方式安装googlepreftools后再次安装nginx 时启用googlepreftools功能时候报找不到googlepreftools lib包。。
异常:
./configure: error: the Google perftool module requires the Google perftools
library. You can either do not enable the module or install the library.
问题原因是:nginx在使用googlepreftools插件时候conf中默认使用了usr/local安装路径。没有采用变量形式。故我们自定义安装路径的googlepreftools。nginx在安装时候会找不到其位置。解决办法要么googlepreftools默认安装 。要么修改 nginx tar包中的这个文件
nginx/auto/lib/google-perftools/conf,把其中的“/usr/local" 全部替换成你的google-perftools的路径,比如:/opt/google-perftools
再次安装 nginx成功 !
./configure --user=shi_nginx --group=shi_nginx --with-http_ssl_module --with-http_flv_module --with-http_gzip_static_module --with-http_stub_status_module --with-google_perftools_module --prefix=/opt/nginx-1.0.8
make
make install
make clean
-------------------------------------------
我修改后的conf文件【/root/nginx-1.0.8/auto/lib/google-perftools、conf】
# Copyright (C) Igor Sysoev ngx_feature="Google perftools" ngx_feature_name= ngx_feature_run=no ngx_feature_incs= ngx_feature_path= ngx_feature_libs="-lprofiler" ngx_feature_test="ProfilerStop()" . auto/feature if [ $ngx_found = no ]; then # FreeBSD port ngx_feature="Google perftools in /opt/googleperftools/" if [ $NGX_RPATH = YES ]; then ngx_feature_libs="-R/opt/googleperftools/lib -L/opt/googleperftools/lib -lprofiler" else ngx_feature_libs="-L/opt/googleperftools/lib -lprofiler" fi . auto/feature fi if [ $ngx_found = yes ]; then CORE_LIBS="$CORE_LIBS $ngx_feature_libs" else cat << END $0: error: the Google perftool module requires the Google perftools library. You can either do not enable the module or install the library. END exit 1 fi
评论
这种方式也能成功? 我暂时还没尝试过
发表评论
-
tomcat jvm 参数说明
2013-12-17 09:50 1503maxThreads=”1000″ enableLookup ... -
SecureCRT常用快捷键设置
2013-11-27 08:36 2720http://www.tatujia.com 1:如果不 ... -
自动拒绝恶意IP远程登录Linux服务器脚本
2013-09-19 13:00 1233http://wgkgood.blog.51cto.com/ ... -
帮助中心分类 新闻公告 (10) Windows VPS教程 (13) Linux VPS教程 (28) 其他 (1) linux中Cron定时任务系统命令详解
2013-05-21 17:46 963有很多同学在购买VPS之后,需要用到计划任务.但是又对计划任 ... -
Nginx配置文件nginx.conf中文详解
2013-04-03 10:29 890#定义Nginx运行的用户和用户组user www www ... -
nginx配置相关文章
2013-04-03 10:29 885nginx配置相关文章 http://developer ... -
Nginx日志自动切割脚本
2013-04-03 10:29 975说明:每隔7天执行一次,使用crontab自动运行脚本,请 ... -
centos 6.2 64位安装nginx php mysql
2013-04-03 10:30 1762平台环境http://jiyunjie.blog.51ct ... -
centos nginx安装教程
2013-04-02 13:50 10351.安装 默认安装到/usr/local/ng ... -
Linux中iptables设置详细
2012-09-28 14:13 1539无论如何,iptables是一个需要特别谨慎设置的东西,万 ... -
CentOS 5.6Final下FTP安装及配置 .
2012-09-27 10:07 1194My Scripts: [root@localhost ~] ... -
CentOS5.6 安装JDK
2012-09-27 10:05 979首先通过界面卸载OpenJDK.然后卸载默认的jdk1.42 ... -
Java获取客户端真实IP地址的两种方法
2012-09-13 13:08 990在JSP里,获取客户端的IP地址的方法是:request.ge ... -
令 Nginx 后端的 Apache 获取到互联网 IP
2012-09-13 10:58 1893http://blog.csdn.net/songerzhou ... -
让tomcat支持2级域名共享session
2012-09-13 10:46 1000tomcat默认情况下是不支持2级域名共享session的,所 ... -
nginx防盗链配置
2012-08-21 13:22 1220以下配置一般可称为图片防盗链配置,如果是mp3这种文件,我现在 ... -
将nginx同时作为负载均衡和Web缓存服务器
2012-02-13 11:11 1169http://server.51cto.com/sColleg ... -
nginx 代理模式下,获取客户端真实IP
2011-11-30 09:42 4813最近做博友推荐,发现个小问题,用$_SERVER['REMOT ... -
nginx相关文章地址收集
2011-11-04 14:07 1007http://bbs.chinaunix.net/thread ... -
LVS+keeplived+nginx+tomcat高可用、高性能jsp集群
2011-11-04 10:31 2042摘自:http://kerry.blog.51cto.com/ ...
相关推荐
nginx安装环境及nginx_1.18.0安装包,gcc、g++、pcre、zlib、nginx包
ubuntu 20.04 离线安装Nginx(nginx-full_1.18.0)及相关依赖文件
linux系统nginx一键自动离线安装包,含安装脚本。内含zlib、pcre、openssl、nginx等安装包
大多产品部署在内网,外网资源很难获取。nginx离线资源包,解决内网部署问题
Nginx 1.22.0 Linux 版本,解压安装。 Nginx是一款轻量级的Web 服务器/反向代理服务器及电子邮件(IMAP/POP3)代理服务器,在BSD-like 协议下发行。其特点是占有内存少,并发能力强,事实上nginx的并发能力在同类型...
网络上很难找到非常详细的...本文档通过真实的实践经验,从安装OpenSSL和Nginx,到利用openssl生成证书,配置nginx的https(包括配置http请求转发到https)等,详细总结出nginx配置https的步骤,最终能帮助你配置成功。
Nginx1.8.0安装简述
ubuntu20.04无网dpkg安装nginx
Linux离线安装nginx安装包,附带安装教程,可以及时更新最新安装路径
centos7.6离线安装nginx
centOS8安装nginx及nginx配置
nginx 离线安装包nginx 离线安装包
Linux系统下无网络环境安装nginx,直接解压即可使用,不用编译,不依赖其他 1.启动nginx,进入nginx安装目录执行:./sbin/nginx -c ./conf/nginx.conf 2.重启新加载nginx配置文件,进入nginx安装目录执行:./sbin/...
Nginx所需环境的安装,及nginx安装,nginx相关功能开启,后端节点健康检查插件安装,静态资源缓存插件,缩略图插件安装等。
国产化环境麒麟v10系统arm64下安装nginx所有依赖
2023年最新测试,绝对没问题!!! 系统版本:银河麒麟服务器系统...安装完可以直接使用 查看是否安装成功 : nginx -version 如果安装和使用遇到什么问题也可以联系我,不忙的话立马帮你解答。 下载后有我的联系方式
linux下Nginx+tomcat整合的安装与配置
Nginx 安装成Windows 服务方法
解压后 执行: dpkg -i *.deb 里面包含gcc make 和nginx
此文档详细介绍了Windows下Nginx的安装与配置,可以让用户在最短的时间内完全配置好nginx!