export PATH =$PATH:/usr/local/openssl/bin 1. # gcc 编译器找到头文件(xx.h)的路径,写C++程序一般都不会用到gcc,所以这个可以忽略不写 export C_INCLUDE_PATH=$C_INCLUDE_PATH:/usr/local/openssl/include 1. # g++ 编译器找到头文件(xx.h/hpp)的路径 export CPLUS_INCLUDE_PATH=$CPLUS_INCLUDE_PAT...
OpenResty 是基于 Nginx 的高性能Web平台,所以其高效运行与 Nginx 密不可分。Nginx 处理HTTP请求有11个执行阶段,我们可以从ngx_http_core_module.h 的源码中看到:typedef enum { NGX_HTTP_POST_READ_PHASE = 0, NGX_HTTP_SERVER_REWRITE_PHASE, NGX_HTTP_FIND_CONFIG_PHASE, NGX_HTTP_REWRITE_...
#lua模块路径,多个之间”;”分隔,其中”;;”表示默认搜索路径,默认到/usr/servers/nginx下找 lua_package_path "/opt/openresty/lualib/?.lua;;"; #lua 模块 lua_package_cpath "/opt/openresty/lualib/?.so;;"; #c 模块 1. 2. 3. 4. 5. 3. 为了方便开发在/opt/openresty/nginx/conf目录下创建...
vi ~/.zsh_profileexport PATH="$PATH:/usr/local/openresty/bin"export PATH="$PATH:/Users/LvYong/dev/kong-0.12.2/kong-0.12.2/bin"启动kong#初始化kong migrations up#启动kong start测试kong⋊> ~ curl -i http://localhost:8001/ ...
在OpenResty部署中我们使用的是在数据卷里面创建config文件 先创建一个configmap目录,在configmap目录里有2个文件: • redis.conf:保存的是reids的配置。 • run.sh:保存的是redis的启动脚本,根据环境变量来确定按那种模式启动redis。 通过使用”kubectl --namespace=euler-system createconfigmapsem-redis-configmap ...
ssl_certificate_key /path/to/private_key.key; location /proxy_connect_example { proxy_pass http://backend; } } } 在这个示例中: 配置了两个server块,分别监听了80端口和443端口。第一个server块用于处理HTTP请求,第二个server块用于处理HTTPS请求。
./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --enable-fpm --with-fpm-user=www --with-fpm-group=www --enable-mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-iconv-dir --with-freetype-dir --with-jpeg-dir --with-png-dir --with-...
-- 获取全局的缓存变量localwhite_list_cache=ngx.shared.uri_white_list_cachelocalfunctionload_white_list()localprefix=ngx.config.prefix()localuri_file_path=prefix.."/conf/uri_white_list.txt"localuri_file=io.open(uri_file_path,"r")ifuri_filethenforlineinuri_file:lines()doline=line:gsub("^...
sudo yum install yum-utilssudo yum-config-manager --add-repo https://openresty.org/package/centos/openresty.repo 2.1.2 安装OpenResty 然后就可以像下面这样安装软件包,比如 openresty sudo yum install openresty 2.2 源代码编译安装 OpenResty插件分为自带插件以及第三方插件,如果是自带插件直接激活就可以,如果...
$./config--prefix=/usr/local/openssl/ $ make&&sudomakeinstall #主线和稳定二选一 # 主线版本 $ wgethttp://nginx.org/download/nginx-1.13.3.tar.gz #稳定版本 $ wgethttp://nginx.org/download/nginx-1.12.1.tar.gz $ tarzxf nginx-*.tar.gz ...