内容简介:如何安装nginScript
分类:Linux 时间:
2015年9月,Nginx宣布支持类JavaScript语言-nginScript,这意味着开发者可以更轻松、自由的用JavaScript控制全球最优秀的HTTP及反向代理服务器。下面详细的看看Nginx如何安装nginScript。
1、下载最新Nginx包,地址可见: http://nginx.org/en/download.html
[root@Nginx ~]# wget http://nginx.org/download/nginx-1.9.4.tar.gz
2、 解压Nginx压缩包
[root@Nginx ~]# tar -xzvf nginx-1.9.4.tar.gz
3、通过mercurial获取nginScript模块,这里如果没有安装mercurial,需要先运行
[root@Nginx ~]# yum install mercurial [root@Nginx ~]# hg clone http://hg.nginx.org/njs
4、编译Nginx,这里只安装了njs模块,其他需要的模块自己要记得一起装哦。
[root@Nginx ~]# cd nginx-1.9.4 [root@Nginx ~]# ./configure --add-module=../njs/nginx --prefix=/usr/local [root@Nginx ~]# make [root@Nginx ~]# make install
ok,nginScript就安装完了。
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Automate This
Christopher Steiner / Portfolio / 2013-8-9 / USD 25.95
"The rousing story of the last gasp of human agency and how today's best and brightest minds are endeavoring to put an end to it." It used to be that to diagnose an illness, interpret legal docume......一起来看看 《Automate This》 这本书的介绍吧!