nginx 使用安装问题及解决方案
如何安装清参考: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.
那么恭喜你启动成功哦哦。
注意还没有进行配置,这只是默认的配置。
最新文章
- javascript冒泡算法
- yii自动登录
- 通过Spring @PostConstruct 和 @PreDestroy 方法 实现初始化和销毁bean之前进行的操作
- ipython and bpython
- Linux中记录终端(Terminal)输出到文本文件(转载)
- 使用cnpm搭建企业内部私有NPM仓库
- List<;object>;排序 z
- 使用getGenericSuperclass()和getActualTypeArguments()将DAO做成泛型
- 微信超时5s,调用客服接口异步回复消息(PHP)
- Spring MVC 关于分页的简单实现
- 自动化测试selenium(四)check,选中复选框,操作一组元素
- 利用Sonar定制自定义扫描规则
- 背景上实现阴影——linear-gradient
- cmd命令行结果保存到txt里,屏幕显示一行就保存一行到txt
- filebeat-kafka日志收集
- 报错org.apache.hadoop.mapreduce.lib.input.FileSplit cannot be cast to org.apache.hadoop.mapred.FileSplit
- swift 学习- 12 -- 方法
- 学习selenium的过程
- 类的静态(Static)成员——字段
- FFmpeg简易播放器的实现-音频播放