在hp下安装nginx

一 安装gcc

http://h21007.www2.hp.com/portal/site/dspp/menuitem.863c3e4cbcdc3f3515b49c108973a801

下载gcc

使用swinstall安装

 

二 安装nginx

进入nginx目录

2.1  ./configure --prefix=/home/palog/mwagent/nginx-1.0.4  --without-http_rewrite_module  --without-http_gzip_module

重点。。

2.2 make的时候会报错

src/os/unix/ngx_time.c: In function 'ngx_localtime':
src/os/unix/ngx_time.c:59:5: error: implicit declaration of function 'localtime_r' [-Werror=implicit-function-declaration]
src/os/unix/ngx_time.c: In function 'ngx_libc_gmtime':
src/os/unix/ngx_time.c:94:5: error: implicit declaration of function 'gmtime_r' [-Werror=implicit-function-declaration]
cc1: all warnings being treated as errors
这是因为hpunix没有localtime_r和gmtime_r函数,专门用于多线程重入的,所以编辑src/os/unix/ngx_time.c,去掉这些内容

 

2.3 su - root

       make insall

 

安装成功,需要学习的有swinstall和理解unix api

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值