首页 > 其他分享 >9.26

9.26

时间:2024-09-26 21:46:34浏览次数:8  
标签:26 9.26 0.0 www iZ2zeddzgv1aavxxfnlj41Z nginx root

今天下午学习了部署云服务器,因为参加一个大创项目,需要开创一个APP,前端项目是VUE和VITE项目搭建的,在阿里巴巴云服务器上部署前端时,一直报错,一开始是感觉有端口没开放或者代码有问题。后来感觉是vue中封装的一些utils类无法使用导致网页显示不出来,捣鼓了一下午才发现原来80端口一直都未被使用,想尽办法重启nginx重启80端口,同时重启9090端口完整的部署在了云服务器。

 

 最后加上重启nginx的命令

[root@iZ2zeddzgv1aavxxfnlj41Z ~]# sudo systemctl status nginx
● nginx.service - LSB: starts the nginx web server
   Loaded: loaded (/etc/rc.d/init.d/nginx; bad; vendor preset: disabled)
   Active: active (exited) since Thu 2024-09-26 17:56:28 CST; 3h 43min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 1140 ExecStart=/etc/rc.d/init.d/nginx start (code=exited, status=0/SUCCESS)

Sep 26 17:56:28 iZ2zeddzgv1aavxxfnlj41Z systemd[1]: Starting LSB: starts the nginx web server...
Sep 26 17:56:28 iZ2zeddzgv1aavxxfnlj41Z nginx[1140]: Starting nginx...  done
Sep 26 17:56:28 iZ2zeddzgv1aavxxfnlj41Z systemd[1]: Started LSB: starts the nginx web server.
[root@iZ2zeddzgv1aavxxfnlj41Z ~]# sudo nginx -t
nginx: the configuration file /www/server/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /www/server/nginx/conf/nginx.conf test is successful
[root@iZ2zeddzgv1aavxxfnlj41Z ~]# sudo tail -f /var/log/nginx/error.log
tail: cannot open ‘/var/log/nginx/error.log’ for reading: No such file or directory
tail: no files remaining
[root@iZ2zeddzgv1aavxxfnlj41Z ~]# sudo tail -f /www/server/nginx/logs/error.log
2024/09/26 16:43:25 [notice] 12674#0: signal process started
2024/09/26 16:46:35 [notice] 12976#0: signal process started
2024/09/26 16:48:20 [notice] 2244#0: signal process started
2024/09/26 16:58:07 [notice] 2273#0: signal process started
2024/09/26 16:58:28 [notice] 2324#0: signal process started
2024/09/26 16:59:22 [notice] 2445#0: signal process started
2024/09/26 17:40:37 [notice] 5950#0: signal process started
2024/09/26 17:40:37 [alert] 5950#0: kill(2833, 1) failed (3: No such process)
2024/09/26 18:24:34 [notice] 4034#0: signal process started
2024/09/26 18:27:45 [notice] 4248#0: signal process started
^Z
[1]+  Stopped                 sudo tail -f /www/server/nginx/logs/error.log
[root@iZ2zeddzgv1aavxxfnlj41Z ~]# ps aux | grep nginx
root     17463  0.0  0.2 241432  4668 pts/0    T    21:41   0:00 sudo tail -f /www/server/nginx/logs/error.log
root     17465  0.0  0.0 108096   616 pts/0    T    21:41   0:00 tail -f /www/server/nginx/logs/error.log
root     17505  0.0  0.0 112812   980 pts/0    S+   21:42   0:00 grep --color=auto nginx
[root@iZ2zeddzgv1aavxxfnlj41Z ~]# sudo systemctl restart nginx
[root@iZ2zeddzgv1aavxxfnlj41Z ~]# sudo /usr/sbin/nginx
sudo: /usr/sbin/nginx: command not found
[root@iZ2zeddzgv1aavxxfnlj41Z ~]# cd /www
[root@iZ2zeddzgv1aavxxfnlj41Z www]# cd work
[root@iZ2zeddzgv1aavxxfnlj41Z work]# ls
student
[root@iZ2zeddzgv1aavxxfnlj41Z work]# cd ..
[root@iZ2zeddzgv1aavxxfnlj41Z www]# cd server
[root@iZ2zeddzgv1aavxxfnlj41Z server]# ls
bt_tomcat_web  data        java    mysql        nginx   other_project  php            pyporject_evn   stop
cron           go_project  lib.pl  net_project  nodejs  panel          proxy_project  python_project
[root@iZ2zeddzgv1aavxxfnlj41Z server]# cd nginx
[root@iZ2zeddzgv1aavxxfnlj41Z nginx]# ls
client_body_temp  fastcgi_temp  lib   proxy_cache_dir  sbin       uwsgi_temp        version.pl
conf              html          logs  proxy_temp_dir   scgi_temp  version_check.pl
[root@iZ2zeddzgv1aavxxfnlj41Z nginx]# sudo nginx
nginx: [emerg] bind() to 0.0.0.0:888 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 0.0.0.0:888 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 0.0.0.0:888 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 0.0.0.0:888 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 0.0.0.0:888 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] still could not bind()
[root@iZ2zeddzgv1aavxxfnlj41Z nginx]# sudo lsof -i :80
COMMAND     PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
AliYunDun  2260 root   11u  IPv4  28244      0t0  TCP iZ2zeddzgv1aavxxfnlj41Z:55682->100.100.30.25:http (ESTABLISHED)
nginx     17565 root   12u  IPv4  76176      0t0  TCP *:http (LISTEN)
nginx     17566  www   12u  IPv4  76176      0t0  TCP *:http (LISTEN)
nginx     17567  www   12u  IPv4  76176      0t0  TCP *:http (LISTEN)
[root@iZ2zeddzgv1aavxxfnlj41Z nginx]# sudo lsof -i :888
COMMAND   PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
nginx   17565 root   11u  IPv4  76175      0t0  TCP *:cddbp (LISTEN)
nginx   17566  www   11u  IPv4  76175      0t0  TCP *:cddbp (LISTEN)
nginx   17567  www   11u  IPv4  76175      0t0  TCP *:cddbp (LISTEN)

命令就是其中的

sudo systemctl restart nginx

标签:26,9.26,0.0,www,iZ2zeddzgv1aavxxfnlj41Z,nginx,root
From: https://www.cnblogs.com/zzqq1314/p/18434484

相关文章

  • 2024.9.26 ThreadLocal
    在使用ThreadLocal的情况下,并发量很高时不会产生冲突,原因如下:1.线程隔离:ThreadLocal为每个线程提供独立的存储空间。每个线程都可以安全地设置和获取其自己的变量值,而不会影响其他线程。即使在高并发环境下,线程间的数据是隔离的。2.并发安全:ThreadLocal本身是线程安......
  • 9.26每日总结
    给出SpringbootCloud的server:port:8084spring:application:name:user-serviceprofiles:active:devdatasource:url:jdbc:mysql://${hm.db.host}:3306/hm-user?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&serverTimezone=......
  • 2024.9.26 计划
    项目下午读论文,用gpt搞懂怎么实时生成热力图,以及如何叠加信号学习上午ROS学习下午-晚上DP总结ROS学习-进程通信(接昨天)遇到了问题:Invoking"makecmake_check_build_system"failed解决方式:功能包里不能有重复名称的节点,检查工作区中是否有其他CMakeLists.txt文......
  • 9.26总结
    省流:死了T1由乃的差分分情况讨论。x<0最简单的情况,只需要升序输出即可。x=0其实就是:零不能放最前面,连续两个不一样,先把第一个输出完然后用排序pair加上双指针乱搞即可。x>0这里给一组hack23770037707hack掉两个同学的输入QWQ先输出第一个,......
  • 9.26递归函数
    递归函数的定义和格式递归是一种常用的解决问题的方法,特别适用于解决可以被分解为类似子问题//递归函数:在函数内部再次调用自己//解决可以被分解为类似子问题的问题//组成://1.基本情况最小问题的答案//2.递归情况调用自己去解决子问题objectTestFucRecursive{//......
  • 【2024潇湘夜雨】WIN10_LTSC2021_21H2.19044.4957软件选装纯净特别版9.26
    【系统简介】=============================================================1.本次更新母盘来自WIN10_LTSC2021_21H2.19044.4957.2.全程离线精简、无人值守调用优化处理制作。部分优化适配系统可能要重启几次,即使显示适配失败也不要在意,可能部分优化不适用。3.OS版本号为19044.49......
  • DRBD9.26 Anolis os 8.9安装配置
    1、安装DRBD9.26两种安装方式1、添加epel-release源安装;2、源码编译安装。参考centosDRBD安装方式,添加epel-release源的方式安装:1.1安装epel源yuminstallepel-releaseyuminstalldrbd-utils2、安装DRBD9.26后,重新编译内核添加对DRBD的内核支持安装完DRBD后systemctlst......
  • 9.26日
    今天简单学习了栈的实现操作和队列的基本应用,马原课上简单认识了物质和意识的性质。 ......
  • 2023.09.26 动手动脑
    Java的类在构造时会提供一个无参的构造方法,如果已存在用户已经自定义的构造方法,则原有的无参构造方法将无法调用,只能调用自己定义的构造方法。静态初始化的执行顺序:classRoot{static{System.out.println("Root的静态初始化块");}{Sys......
  • 每日总结——9.26(周二)
    学习工作描述同事都走了,一个人在这边,就简单地重新整理了一下Furion框架的笔记总结与反思没有自制力,马上就要回家了,心思都往外面飞走了明日计划收拾东西,回,,,家,,,了,,,......