mac nginx compile
编译
./configure \
--prefix=/usr/local/services/nginx-1.14.0 \
--with-openssl=/Users/gavin/Downloads/src/openssl-1.0.2l \
--with-http_ssl_module \
--user=www \
--group=www \
--with-pcre \
--without-mail_pop3_module \
--without-mail_imap_module \
--without-mail_smtp_module
注意
--with-openssl 是指定 openssl 的源代码的库目录,不是安装的目录
问题 - ./Configure darwin64-x86_64-cc
问题是 openssl/config 脚本猜对你的系统是64位,但是会根据 $KERNEL_BITS 来判断是否开启 x86_64 编译,默认是不开启的(很奇怪的设置,虽然会给你5秒时间停止编译并手动开启),所以你生成的 openssl 库文件是 32 位的,最后静态链接到 nginx 会出错。
解决
编译之前先设置一下变量
export KERNEL_BITS=64mac nginx compile的更多相关文章
- Mac + nginx + lua + luasocket + cjson
		1. Lua // 官方网站 http://www.lua.org/ 下载源码包// 由于配合 nginx 使用, 所以使用 5.1.X 版本 $ .tar.gz $ cd lua- $ make m ... 
- mac nginx 一些资料
		http://www.jianshu.com/p/918eb337a206 mac 的nginx 配置目录在/usr/local/etc/nginx 安装之前最好执行brew的update和upgra ... 
- mac nginx php-fpm
		再一次被困在一个傻问题.由于我居然怀疑是不是mac本身就和centos的安装不一样.在一次次地排错后,最终发现.原来是我的nginx.conf的一行配置少写了一个字母.最后多亏用ls检查来定位到这个错 ... 
- mac nginx php php-fpm
		#the php-fpm config and cammand... cp /private/etc/php-fpm.conf.default /usr/local/etc/php-fpm.conf ... 
- MAC NGINX PHP XDEBUG
		1. 安装 homebrew 2. 安装nginx ; 终端运行 brew install nginx: 1)给nginx 设置管理员权限:如果不设置管理员权限,80端口是不能监听的: #这里的目录根 ... 
- mac nginx 启动 自启动
		MacBook-Pro:local shihw$ brew services start nginx ==> Tapping homebrew/services Cloning into '/u ... 
- mac  Nginx+CI出现404错误
		主要是ci框架需要配置rewrite nginx.conf配置文件添加: location /wechat/ { if (!-e $request_filename) { rewrite ^/wech ... 
- mac nginx+php-fpm配置(安装过后nginx后访问php文件下载,访问php文件请求200显示空白页面)
		访问php文件下载是因为没配置php-fpm 两个问题主要都是nginx.conf配置的问题: /usr/local/etc/nginx/nginx.conf server { listen 8 ... 
- mac nginx 安装教程
		eeking a satisfactory solution to create a local web server for programming in macOS with PHP and My ... 
随机推荐
- 安装了nodejs后在命令行运行npm报错
			安装了nodejs后在命令行运行npm报错:Error: Cannot find module 'internal/util/types' 解决方法:删除目录“C:\Users\mengxiaobo\ ... 
- WPF 打开指定文件路径的文件资源管理器
			x 需求是想让WPF打开一个指定文件路径的文件夹,但是搜出来的八成都是<打开文件>的这样的↓ Microsoft.Win32.OpenFileDialog open_file = new ... 
- 如何移植freertos
			要素: 1.两个主要的文件夹移动 2.freertos_config 复制,决定了系统时钟启动位置 3. 启动汇编复制替换 4.it中断管理文件 的相关三个中断注释掉 5.复制delay文件,主要是s ... 
- 命令配置linux分辨率
			1. xrandr 使用该命令列举系统支持的分辨率 2. xrandr -s 回复原来的分辨率 3. xrandr -s 1360x768 设置分辨率 如果分辨率没能锁定,请在根目录使用gedit ... 
- 应用打开其xlspptdoc等
			http://www.libxl.com/documentation.html xls读写编辑类库libxl https://blog.csdn.net/songbob/article/detail ... 
- webpack.DefinePlugin
			通过配置了DefinePlugin,那么这里面的标识就相当于全局变量,你的业务代码可以直接使用配置的标识.比如,你通过下面的设置: // webpack.config.js new webpack.D ... 
- [administrative][qemu][kvm] qemu使用--bridge-helper
			公司服务器,源码安装的 qemu-2.9.0. 不是yum装的. 问题1:非超级用户的kvm权限问题: 略,直接超级用户使用. 也许有用? https://access.redhat.com/docu ... 
- hash_map
			点开一道第是自己oj的第440大关,想a了,一直想却无果,学长一句点醒,开始写hash. 关于这道题呢很无语了,两天卡在这上面,而且有些dalao不到20min就a了.我太菜了. 所以要深入讨论这道题 ... 
- delphi inttohex 整型到十六进制
			inttohex from delphi help: Returns the hex representation of an integer. Unit SysUtils Category nume ... 
- ORACLE DB体系结构
			. 实例:一组oracle后台进程.线程以及一个共享内存区. 连接:用户进程和实例之间的通信 会话:用户通过用户进程与实例建立的特定连接 参数文件:包含控制文件的位置和名称 分为pfile和spfil ... 
