1、mac上nginx安装

brew search nginx
brew install nginx

当然也可以编译安装

安装完以后,可以在终端输出的信息里看到一些配置路径:

/usr/local/etc/nginx/nginx.conf (配置文件路径)

/usr/local/var/www (服务器默认路径)

/usr/local/Cellar/nginx/1.xx.0 (安装路径)

2、intellij idea安装 插件 nginx support

  插件可以支持使用intellij 启动关闭 nginx, 并且 配置好可以支持 Nginx.conf的语法高亮

3、在idea中使用

  Edit Configurations→"+"→nginx server→右侧Configure...

    

  选择

    

  之后找到:/usr/local/Cellar/nginx/1.xx.xx/bin/nginx

    会出现

    

    选择

    

  可以看到如下配置

/usr/local/Cellar/nginx/1.15.9/bin/nginx

/usr/local/etc/nginx/nginx.conf

/usr/local/etc/nginx/logs/nginx.pid

4、启动 intellij Nginx

输入浏览器地址:http://localhost:8080/

具体端口号查看Nginx.conf目录

5、查看安装目录:

/usr/local/Cellar/nginx

欢迎页面位置:/usr/local/var/www

6、高亮配置,使用nginx没有高亮,请按照idea编辑插件 'idea Nginx support' , 另外nginx.conf 必须选择   

   

sdf

  

最新文章

  1. windows自带的压缩,解压缩命令
  2. java的回忆录
  3. Java Runtime Data Area
  4. 微软TTS示例
  5. 《Windows核心编程》第一讲 对程序错误的处理
  6. HTTP面试题都在这里
  7. Codeforces Round #419 D. Karen and Test
  8. mingw-gcc-9.0.1-i686-posix-sjlj-201903
  9. [PHP]算法-最长公共子串的PHP实现
  10. deep learning 以及deep learning 常用模型和方法
  11. 如何使用Linux 命令more 查看文本文件
  12. Prometheus监控学习笔记之全面学习Prometheus
  13. 《Google Glass开发指南》
  14. Proxy源代码分析——谈谈如何学习Linux网络编程
  15. js 删除数组几种方法
  16. Js基础知识7-Es6新增对象Map和set数据结构
  17. Linux 后台进程管理和就几个“Ctrl+”命令 【转载】
  18. Canvas+Js制作动量守恒的小球碰撞
  19. 利用jdbc连接池(利用jdni)
  20. openmax component类的继承关系

热门文章

  1. [Localization] MobileNet with SSD
  2. 【Latex】常用工具包
  3. jenkins 使用curl调用时带文件参数
  4. day_5.20 py
  5. 洛谷P1162 填涂颜色【bfs】
  6. Codeforces 219C - Color Stripe - [DP]
  7. RabbitMQ的Q&A
  8. English class 82 The Importance of traveling
  9. MySQL数据类型之字符串类型
  10. day0320 时间模块 collection模块