![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
nginx
文章平均质量分 78
SonoFelice_mm
这个作者很懒,什么都没留下…
展开
-
nginx.conf常用配置
一、全局配置user username groupname运行用户及用户组worker_processes auto启动进程,通常设置成和cpu数量相等的一个数值,默认为1。可以设置为auto,这样nginx会自动根据本机的cpu内核数生成对应数量的worker进程。可以通过lscpu命令确定可用的核心数。pid log/nginx.pid进程pid的存放位置error_log log/error...原创 2018-02-28 15:17:00 · 228 阅读 · 0 评论 -
使用nginx搭建文件下载服务器
搭建一个文件服务器的方式有很多,本文介绍笔者曾经用过的两种:使用nginx使用java服务,通过controller提供一、使用nginx搭建在nginx.conf中直接配置server即可,示例代码如下:user felice felice;worker_processes auto;master_process on;pid log/nginx.pid;error_log log/e...原创 2018-02-28 15:18:33 · 8888 阅读 · 0 评论 -
lua相关库安装常见问题
一、先安装luabrew install lua我本机的安装路径为:/usr/local/Cellar/lua/5.3.4_2二、安装luarocks下载luarocks的安装包:http://luarocks.github.io/luarocks/releases/luarocks-2.4.3.tar.gz解压后到安装包的目录下执行如下命令(可以自行根据自己的lua版本号进行修改):./conf...原创 2018-02-28 15:20:53 · 887 阅读 · 0 评论