zoukankan      html  css  js  c++  java
  • nginx安装

    一、Windows系统上安装nginx

    下载:

    http://nginx.org/en/download.html

    二、Mac系统上安装nginx

    1 使用brew安装nginx

    brew install nginx

    如果homebrew不是最新版本,会先更新,

    Updating Homebrew...

    当然可以设置不自动更新(网上搜吧。。)

     

     

    2 安装完成之后,执行如下命令启动:

    sudo nginx

    若出现,

    nginx: [emerg] bind() to 0.0.0.0:8080 failed (48: Address already in use)

    nginx: [emerg] bind() to 0.0.0.0:8080 failed (48: Address already in use)

    nginx: [emerg] bind() to 0.0.0.0:8080 failed (48: Address already in use)

    nginx: [emerg] bind() to 0.0.0.0:8080 failed (48: Address already in use)

    nginx: [emerg] bind() to 0.0.0.0:8080 failed (48: Address already in use)

     

    有其它进程占用8080端口,可以打开/usr/local/etc/nginx/nginx.conf文件修改默认端口。

     

    3 测试

     访问http://localhost:8080,将显示nginx的欢迎页面。 

  • 相关阅读:
    远程连接redis服务
    redis的安装以及启动
    Easyui学习之右键菜单easyui-menu
    富文本编辑器KindEditor的使用
    zookeeper启动失败解决方法
    在TortoiseSVN使用clean up
    kettle性能优化
    idea快捷键
    Spring Cloud服务网关 Zuul Filter使用
    添加路由
  • 原文地址:https://www.cnblogs.com/amunamuna/p/9202967.html
Copyright © 2011-2022 走看看