Nginx无法启动 -10013: An attempt was made to access a socket in a way forbidden by its access permission

这篇具有很好参考价值的文章主要介绍了Nginx无法启动 -10013: An attempt was made to access a socket in a way forbidden by its access permission。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

Nginx无法启动

使用nginx -t 发成Nginx无法启动;

错误提示:10013: An attempt was made to access a socket in a way forbidden by its access permissions

错误原因: Nginx conf 文件里面的端口被占用

解决方法:
使用端口查找命令一个个找端口,确定被占用的端口

Nginx无法启动 -10013: An attempt was made to access a socket in a way forbidden by its access permissionnetstat 命令行检查 netstat -aon |findstr “3817”,一旦确认被占用,可以采用,更换端口的方式。然后继续执行
nginx -t 来检查nginx配置没有问题

最后重启一下nginx就解决问题了。


查找端口

netstat -aon |findstr “:端口号”文章来源地址https://www.toymoban.com/news/detail-512227.html

到了这里,关于Nginx无法启动 -10013: An attempt was made to access a socket in a way forbidden by its access permission的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • 已解决RuntimeError: An attempt has been made to start a new process before the current process has fi

    已解决RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase. RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase. 这个错误通常是由于在程序启动阶段尝试启动新的进程引起的。 下滑查看解

    2024年02月04日
    浏览(50)
  • RuntimeError: CUDA error: an illegal memory access was encountered

    后续发现其实是某张卡有问题, 0~3一共4个GPU,只在使用0号GPU的时候会出问题 0号卡似乎是被某个进程锁了,还是怎么样,不用那个卡就没事了 其实不难发现,我报错的位置基本都是从 gpu 往 cpu 转换的时候出现的问题。 因此考虑是不是cpu内存不太够了,所以内存访问发生错

    2024年01月17日
    浏览(42)
  • logstash问题记录:Attempted to resurrect connection to dead ES instance, but got an error

    发现kibana中日志不在更新了,停留在了一个时间点没有继续更新,然后就去检查各个服务,发现es、logstash、kibana均正常,不过发现es里面没有新日志产生,初步怀疑是logstash没有成功推送过来日志。 1.检查logstash日志,logstahs是java开发的,笔者将日志记录到了nohup.out文件中 检查

    2024年02月11日
    浏览(66)
  • apache-jmeter无法启动:Error: Unable to access jarfile ApacheJMeter.jar/errorlevel=1

    在启动apache-jmeter的时候,遇到了这种报错信息,一般有以下几种情况: 1、打开D:apache-jmeter-5.2.1bin目录,在bin目录下查找ApacheJMeter.jar包,如果没有找到那就是解压的时候出错了,重新去官网下载一份Apache JMeter - Apache JMeter™ 2、重新下载一份,解压之后还是没有找到ApacheJM

    2024年02月04日
    浏览(42)
  • paddlepaddle在执行loss.item()的时候,报错an illegal memory access was encountered.

    正在使用 PaddlePaddle,并在执行 loss.item() 时遇到了一个 “an illegal memory access was encountered” 的错误。 这个错误通常表示你试图访问一个无效的内存地址。在深度学习框架中,这可能是由于多种原因引起的,例如: 模型或数据的问题:确保你的模型结构和输入数据是正确的。

    2024年01月20日
    浏览(45)
  • (转)java.sql.SQLException: An attempt by a client to checkout a Connection has timed out.

    jar包下载方式 官网地址:MySQL :: Download Connector/J,如果你打不开官网,在下面我为你准备了直接下载jar包的链接地址。 在选择操作系统时,此处选择platform independent(独立于平台)。   8.0版本的jar包下载地址,点击直接下载。 https://dev.mysql.com/get/Downloads/Connector-J/mysql-connect

    2023年04月26日
    浏览(34)
  • uniapp [Vue warn]: Error in onLoad hook: “TypeError: Attempting to change the setter of an unconfigu

    用uniapp开发微信小程序时候发现报这个错误,记录下我是如何解决的! uniapp [Vue warn]: Error in onLoad hook: \\\"TypeError: Attempting to change the setter of an unconfigurable property.\\\" 由于在Object.defineproperty方法中,控制属性不可以被删除, unconfigurable 状态。 我们来看下 Object.defineproperty方法的具体

    2024年02月13日
    浏览(32)
  • Did not attempt to load JSON data because the request Content-Type was not ‘application/json‘

    在使用flask-restfull进行API开发的时候。一旦我使用类似下面的代码从url或者form中获得参数就会出现报错:Did not attempt to load JSON data because the request Content-Type was not ‘application/json’。 代码如下: 解决方法如下

    2024年02月16日
    浏览(51)
  • unable to access ‘https://github.com/.../...git‘: Recv failure: Connection was reset

    解决git下载报错:fatal: unable to access ‘https://github.com/…/…git’: Recv failure: Connection was reset 1、在git中执行git config --global --unset http.proxy和git config --global --unset https.proxy 2、在cmd下执行ipconfig/flushdns 清理DNS缓存 3、重新执行git clone https://github.com/…/.git/’ 即可

    2024年02月12日
    浏览(41)
  • IDEA启动项目时报Error:Kotlin: Module was compiled with an incompatible version of Kotlin.

    用IDEA启动项目时,有一个服务启不了,报错信息如下: Error:Kotlin: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.13. 我的IDEA版本是:IntelliJ IDEA 2018.3.5 (Ultimate Edition) 方法一:升级Kotlin插件 由于下载时间太慢,换第二种方案;

    2024年02月11日
    浏览(37)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包