当前位置: 首页 > news >正文

用flask做的网站视频推广网站

用flask做的网站,视频推广网站,网络营销的工作岗位有哪些,苏州营销型网站利用NGINX搭建了视频服务#xff0c;突然发现启动不了了#xff0c;于是命令开始 使用以下命令查看更详细的错误信息#xff1a; systemctl status nginx.service Warning: The unit file, source configuration file or drop-ins of nginx.service changed on disk. Run…利用NGINX搭建了视频服务突然发现启动不了了于是命令开始 使用以下命令查看更详细的错误信息 systemctl status nginx.service Warning: The unit file, source configuration file or drop-ins of nginx.service changed on disk. Run systemctl daemon-reload to reload units. Job for nginx.service failed because the control process exited with error code. See systemctl status nginx.service and journalctl -xe for details. [rootraw /]# sudo systemctl daemon-reload [rootraw /]# systemctl status nginx.service ● nginx.service Loaded: loaded (/etc/systemd/system/nginx.service; bad; vendor preset: disabled) Active: failed (Result: exit-code) since Thu 2024-04-18 11:23:02 CST; 14s ago4月 18 11:23:02 raw.githubusercontent.com systemd[1]: Starting nginx.service... 4月 18 11:23:02 raw.githubusercontent.com systemd[1]: nginx.service: Control process exited, codeexited status203 4月 18 11:23:02 raw.githubusercontent.com systemd[1]: nginx.service: Failed with result exit-code. 4月 18 11:23:02 raw.githubusercontent.com systemd[1]: Failed to start nginx.service. 4月 18 11:23:12 raw.githubusercontent.com systemd[1]: /etc/systemd/system/nginx.service:1: Assignment outside of section. Ignoring. 4月 18 11:23:12 raw.githubusercontent.com systemd[1]: /etc/systemd/system/nginx.service:2: Assignment outside of section. Ignoring. 4月 18 11:23:12 raw.githubusercontent.com systemd[1]: /etc/systemd/system/nginx.service:3: Assignment outside of section. Ignoring. 4月 18 11:23:16 raw.githubusercontent.com systemd[1]: /etc/systemd/system/nginx.service:1: Missing . [rootraw /]# sudo systemctl start nginx Job for nginx.service failed because the control process exited with error code. See systemctl status nginx.service and journalctl -xe for details. [rootraw /]# systemctl status nginx.service ● nginx.service Loaded: loaded (/etc/systemd/system/nginx.service; bad; vendor preset: disabled) Active: failed (Result: exit-code) since Thu 2024-04-18 11:23:22 CST; 7s ago Process: 41057 ExecStart/usr/local/nginx/sbin/nginx (codeexited, status1/FAILURE)4月 18 11:23:21 raw.githubusercontent.com nginx[41057]: nginx: [emerg] bind() to 0.0.0.0:8090 failed (98: Address already in use) 4月 18 11:23:21 raw.githubusercontent.com nginx[41057]: nginx: [emerg] bind() to 0.0.0.0:82 failed (98: Address already in use) 4月 18 11:23:21 raw.githubusercontent.com nginx[41057]: nginx: [emerg] bind() to 0.0.0.0:8090 failed (98: Address already in use) 4月 18 11:23:21 raw.githubusercontent.com nginx[41057]: nginx: [emerg] bind() to 0.0.0.0:82 failed (98: Address already in use) 4月 18 11:23:22 raw.githubusercontent.com nginx[41057]: nginx: [emerg] bind() to 0.0.0.0:8090 failed (98: Address already in use) 4月 18 11:23:22 raw.githubusercontent.com nginx[41057]: nginx: [emerg] bind() to 0.0.0.0:82 failed (98: Address already in use) 4月 18 11:23:22 raw.githubusercontent.com nginx[41057]: nginx: [emerg] still could not bind() 4月 18 11:23:22 raw.githubusercontent.com systemd[1]: nginx.service: Control process exited, codeexited status1 4月 18 11:23:22 raw.githubusercontent.com systemd[1]: nginx.service: Failed with result exit-code. 4月 18 11:23:22 raw.githubusercontent.com systemd[1]: Failed to start nginx.service. 然后发现是端口被占用先杀死端口吧 问题出现在尝试启动 Nginx 时遇到端口冲突导致无法绑定到指定的端口0.0.0.0:8090 和 0.0.0.0:82上。可以按照以下步骤解决这个问题 查找占用端口的进程 使用以下命令查找占用端口 8090 和 82 的进程 sudo netstat -tuln | grep :8090\|:82 停止占用端口的进程 根据上一步的输出找到占用端口的进程并停止它们可以使用以下命令杀死占用端口 8090 的进程假设 PID 为 XXX sudo kill XXX 修改 Nginx 配置文件 如果需要修改 Nginx 配置文件中监听的端口可以编辑 Nginx 配置文件通常在 /usr/local/nginx/conf/nginx.conf并将监听端口修改为未被占用的端口例如 8080。 重新加载 Nginx 配置并启动服务 保存修改后的配置文件然后重新加载 Nginx 配置并尝试启动 Nginx 服务 sudo /usr/local/nginx/sbin/nginx -s reload 再次检查 Nginx 服务状态 使用以下命令再次检查 Nginx 服务的状态 systemctl status nginx 通过找到并停止占用端口的进程修改 Nginx 配置文件中的监听端口然后重新加载配置并启动 Nginx 服务应该可以解决端口冲突导致的启动问题。 然后命令重启nginx [rootraw conf]# sudo systemctl start nginx [rootraw conf]# systemctl status nginx ● nginx.service    Loaded: loaded (/etc/systemd/system/nginx.service; bad; vendor preset: disabled)    Active: active (running) since Thu 2024-04-18 11:31:03 CST; 5s ago   Process: 41932 ExecStart/usr/local/nginx/sbin/nginx (codeexited, status0/SUCCESS)  Main PID: 41933 (nginx)     Tasks: 2 (limit: 203695)    Memory: 1.3M    CGroup: /system.slice/nginx.service            ├─41933 nginx: master process /usr/local/nginx/sbin/nginx            └─41934 nginx: worker process 4月 18 11:31:03 raw.githubusercontent.com systemd[1]: Starting nginx.service... 4月 18 11:31:03 raw.githubusercontent.com systemd[1]: Started nginx.service.   外界还看不到视频的话那就是防火墙拦截了再开启端口 要开放特定端口例如82端口您可以按照以下步骤在防火墙中添加规则以允许流量通过该端口 使用 firewall-cmd 命令添加端口规则 执行以下命令以永久性地开放82端口 txt sudo firewall-cmd --zonepublic --add-port82/tcp --permanent 重新加载防火墙规则 执行以下命令以重新加载防火墙规则使新的端口规则生效 sudo firewall-cmd --reload 验证端口是否已开放 您可以运行以下命令来查看防火墙规则确认82端口已成功开放 sudo firewall-cmd --list-all 通过执行以上步骤可以在防火墙中添加规则以允许流量通过82端口。 [rootraw conf]# sudo firewall-cmd --zonepublic --add-port82/tcp --permanent success [rootraw conf]# sudo firewall-cmd --reload success [rootraw conf]# sudo firewall-cmd --list-all public (active)   target: default   icmp-block-inversion: no   interfaces: ens192   sources:    services: cockpit dhcpv6-client ssh   ports: 82/tcp   protocols:    forward: no   masquerade: no   forward-ports:    source-ports:    icmp-blocks:    rich rules:  [rootraw conf]#    然后成功
http://www.hkea.cn/news/14440106/

相关文章:

  • 手机网站开发需要哪些人才自己在家怎么做跨境电商
  • 怎样做才能让百度搜到网站产品网络设计有限公司
  • 高水平的番禺网站建设江门网页设计培训价格
  • 平台型网站制作wordpress账号无法创建
  • 广东网站建设模板网络工程技术课设报告
  • 网站建设图标浙江省建设网站徐叨法
  • 网站建设功能报数据分析师就业前景
  • 企业门户网站费用东营网红餐厅
  • 外贸五金网站58同城最新招聘信息
  • 做网站需要提供什么条件沂源放心企业网站建设方案报价
  • 关于建筑工程的网站工业和信息化部直属大学
  • html5建设的网站湛江网站设计公司地址
  • 做调查网站怎样换IP商务网站建设与维护 ppt
  • 尉氏做网站优秀 响应式网站
  • 中国最大的网站建设公司海外搜索推广外贸网站
  • 建设工程鲁班奖公示网站网络营销策划的基本原则
  • 海南做网站2023军文职人员招聘网官网
  • 网站长图怎么做阿里巴巴网站建设的态度虚心
  • 不同类型网站比较深圳珠宝网站建设
  • 网站建设必备语言外国知名个人网站
  • 汕头网站建设制作厂家网站分类代码
  • 北京网站建设 网站维护网站做一排横图
  • 手机网站怎么提高关键词wordpress主页大小
  • 有没有专门做兼职的网站移动端网站建设重点有哪些
  • 聊城网站那家做的好优设网官网教程
  • 制作网页网站费用属于资本性支出吗wordpress 图片上传
  • 个人网站模板怎么做大连网站建设实例
  • 地方文明网站建设方案网站开发的常用流程
  • 北京住房与建设部网站首页怎么在导航网站上做推广
  • 宁波网站建设公司哪家好SEO如何建设网站