如何安装清参考:http://www.runoob.com/linux/nginx-install-setup.html

可以先不用配置,等理解后在配置。

在启动nginx时,出现提示:

nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] still could not bind()

原因是因为80 端口已被其他的程式占用,所以需要kill掉其他的进程。

使用命令:  fuser -n tcp 80  查看;

然后使用 kill -9  [进程名] ...

然后出新输nginx 启动命令。

在浏览器上使用localhost 打开,会出现提示:

Welcome to nginx!

If you see this page, the nginx web server is successfully installed and working. Further configuration is required.

For online documentation and support please refer to nginx.org.
Commercial support is available at
nginx.com.

Thank you for using nginx.

那么恭喜你启动成功哦哦。

注意还没有进行配置,这只是默认的配置。

最新文章

  1. javascript冒泡算法
  2. yii自动登录
  3. 通过Spring @PostConstruct 和 @PreDestroy 方法 实现初始化和销毁bean之前进行的操作
  4. ipython and bpython
  5. Linux中记录终端(Terminal)输出到文本文件(转载)
  6. 使用cnpm搭建企业内部私有NPM仓库
  7. List<object>排序 z
  8. 使用getGenericSuperclass()和getActualTypeArguments()将DAO做成泛型
  9. 微信超时5s,调用客服接口异步回复消息(PHP)
  10. Spring MVC 关于分页的简单实现
  11. 自动化测试selenium(四)check,选中复选框,操作一组元素
  12. 利用Sonar定制自定义扫描规则
  13. 背景上实现阴影——linear-gradient
  14. cmd命令行结果保存到txt里,屏幕显示一行就保存一行到txt
  15. filebeat-kafka日志收集
  16. 报错org.apache.hadoop.mapreduce.lib.input.FileSplit cannot be cast to org.apache.hadoop.mapred.FileSplit
  17. swift 学习- 12 -- 方法
  18. 学习selenium的过程
  19. 类的静态(Static)成员——字段
  20. FFmpeg简易播放器的实现-音频播放

热门文章

  1. property、synthesize、id
  2. CSS自学笔记(7):CSS定位
  3. [Leetcode][Python]26: Remove Duplicates from Sorted Array
  4. Spring mvc 简单异常配置jsp页面
  5. 面向对象程序设计-C++_课时16子类父类关系
  6. js模块化认识1
  7. IE6兼容性问题及IE6常见bug详细汇总---转载
  8. android 内存优化
  9. c++ 回调类成员函数实现
  10. Bower前端包管理器