Giter Site home page Giter Site logo

Comments (12)

tautcony avatar tautcony commented on August 23, 2024

(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80

你有什么应用占着80端口呢?

from quickbox-lite.

amefs avatar amefs commented on August 23, 2024

运行一下 systemctl status nginx 看看服务状态,如上一条回复所说,安装中间出现的问题是 apache/nginx 互相占用端口,请确保只有 nginx 使用 80/443 端口,并且正常运行

from quickbox-lite.

piaoyun avatar piaoyun commented on August 23, 2024

[12:53 root@onssd2 ~] > systemctl status nginx
● nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: failed (Result: timeout) since Wed 2020-04-22 12:36:40 CEST; 1h 53min ago
Docs: man:nginx(8)

Apr 22 12:35:09 onssd2 systemd[1]: Starting A high performance web server and a reverse proxy server...
Apr 22 12:36:40 onssd2 systemd[1]: nginx.service: Start-pre operation timed out. Terminating.
Apr 22 12:36:40 onssd2 systemd[1]: nginx.service: Failed with result 'timeout'.
Apr 22 12:36:40 onssd2 systemd[1]: Failed to start A high performance web server and a reverse proxy server.

运行一下 systemctl status nginx 看看服务状态,如上一条回复所说,安装中间出现的问题是 apache/nginx 互相占用端口,请确保只有 nginx 使用 80/443 端口,并且正常运行

from quickbox-lite.

piaoyun avatar piaoyun commented on August 23, 2024

通过命令,systemctl status nginx
然后面板能访问了。但是输入密码后,出现:
502 Bad Gateway
nginx

错误。囧。。

from quickbox-lite.

amefs avatar amefs commented on August 23, 2024

上述命令能够看到的只有 nginx 的工作状态,按照上面的 status 你都不应该能够看到 502 的报错。建议运行 sudo apt remove apache2 apache2-bin apache2-data 确保这些包不在你的服务器上,然后 systemctl restart nginx 重启 nginx 服务

from quickbox-lite.

piaoyun avatar piaoyun commented on August 23, 2024

[16:32 root@onssd2 sites-enabled] > sudo apt remove apache2 apache2-bin apache2-data
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'apache2' is not installed, so not removed
Package 'apache2-bin' is not installed, so not removed
Package 'apache2-data' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
[17:27 root@onssd2 sites-enabled] > systemctl restart nginx

访问面板还是502.但是。直接访问****.***/deluge 是可以登陆访问的

from quickbox-lite.

amefs avatar amefs commented on August 23, 2024

请运行一次 box update quickbox 这将会重置你面板到最新,然后如果仍然有问题,则复制这里的配置到 /etc/nginx/apps/dashboard.conf 里面,运行 nginx -s reload 以重载配置文件

from quickbox-lite.

piaoyun avatar piaoyun commented on August 23, 2024

[18:05 root@onssd2 ~] > box update quickbox
➜ Checking and performing updates to system...
✓ System updated.
➜ Updating QuickBox local repository...
✓ QuickBox local repository updated
➜ Adjust file permission...
✓ file permission updated
➜ Updating bashrc...
✓ bashrc updated
➜ Updating skel...
✓ skel updated
➜ Reconfig Dashboard service...
✓ Dashboard service updated
➜ Updating QuickBox dashboard...
✓ QuickBox dashboard updated
➜ Updating QuickBox language...
Could not connect to /run/php/php7.2-fpm.sock
✓ QuickBox language updated
✓ QuickBox update finished!
Could not connect to /run/php/php7.2-fpm.sock
[18:09 root@onssd2 ~] > nginx -s reload
nginx: [warn] "ssl_stapling" ignored, issuer certificate not found for certificate "/etc/ssl/certs/ssl-cert-snakeoil.pem"

问题依旧是502.
以下是端口使用情况,还有系统版本

[18:12 root@onssd2 ~] > netstat -antp
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:4200 0.0.0.0:* LISTEN 446/shellinaboxd
tcp 0 0 127.0.0.1:11211 0.0.0.0:* LISTEN 408/memcached
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 3078/nginx: master
tcp 0 0 127.0.0.1:15250 0.0.0.0:* LISTEN 402/python
tcp 0 0 127.0.0.1:15188 0.0.0.0:* LISTEN 430/qbittorrent-nox
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 407/named
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 345/systemd-resolve
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 649/master
tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN 407/named
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 3078/nginx: master
tcp 0 0 0.0.0.0:5757 0.0.0.0:* LISTEN 429/vsftpd
tcp 0 0 0.0.0.0:10046 0.0.0.0:* LISTEN 400/python
tcp 0 0 127.0.0.1:8575 0.0.0.0:* LISTEN 2343/node
tcp 0 0 0.0.0.0:5858 0.0.0.0:* LISTEN 434/sshd
tcp 0 0 0.0.0.0:27619 0.0.0.0:* LISTEN 430/qbittorrent-nox
tcp 0 0 127.0.0.1:28332 127.0.0.1:15250 TIME_WAIT -
tcp 0 0 127.0.0.1:28322 127.0.0.1:15250 TIME_WAIT -
tcp 0 0 127.0.0.1:28326 127.0.0.1:15250 TIME_WAIT -
tcp 0 0 127.0.0.1:28338 127.0.0.1:15250 TIME_WAIT -
tcp 0 0 127.0.0.1:28318 127.0.0.1:15250 TIME_WAIT -
tcp 0 0 127.0.0.1:46816 127.0.0.1:10046 ESTABLISHED 402/python
tcp 0 0 127.0.0.1:10046 127.0.0.1:46816 ESTABLISHED 400/python
tcp 0 0 127.0.0.1:28330 127.0.0.1:15250 TIME_WAIT -
tcp 0 0 127.0.0.1:28340 127.0.0.1:15250 TIME_WAIT -
tcp 0 0 127.0.0.1:28324 127.0.0.1:15250 TIME_WAIT -
tcp 0 0 127.0.0.1:28334 127.0.0.1:15250 TIME_WAIT -
tcp 0 0 127.0.0.1:28336 127.0.0.1:15250 TIME_WAIT -
tcp 0 0 127.0.0.1:28328 127.0.0.1:15250 TIME_WAIT -
tcp6 0 0 :::3465 :::* LISTEN 430/qbittorrent-nox
tcp6 0 0 :::80 :::* LISTEN 3078/nginx: master
tcp6 0 0 :::53 :::* LISTEN 407/named
tcp6 0 0 :::25 :::* LISTEN 649/master
tcp6 0 0 ::1:953 :::* LISTEN 407/named
tcp6 0 0 :::443 :::* LISTEN 3078/nginx: master
tcp6 0 0 :::25951 :::* LISTEN 430/qbittorrent-nox
tcp6 0 0 :::5858 :::* LISTEN 434/sshd
[18:12 root@onssd2 ~] > cat /etc/issue
Ubuntu 18.04.4 LTS \n \l

from quickbox-lite.

piaoyun avatar piaoyun commented on August 23, 2024

[18:12 root@onssd2 ~] > nginx -t
nginx: [warn] "ssl_stapling" ignored, issuer certificate not found for certificate "/etc/ssl/certs/ssl-cert-snakeoil.pem"
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

from quickbox-lite.

amefs avatar amefs commented on August 23, 2024

看起来问题比较像是 php 的。apt-get --reinstall install php7.2-fpm 然后 systemctl restart php7.2-fpm 看看这个服务重启有没有报错

from quickbox-lite.

piaoyun avatar piaoyun commented on August 23, 2024

[21:55 root@onssd2 ~] > apt-get --reinstall install php7.2-fpm
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 3 not upgraded.
Need to get 0 B/1,414 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 147190 files and directories currently installed.)
Preparing to unpack .../php7.2-fpm_7.2.30-1+ubuntu18.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php7.2-fpm (7.2.30-1+ubuntu18.04.1+deb.sury.org+1) over (7.2.30-1+ubuntu18.04.1+deb.sury.org+1) ...
Setting up php7.2-fpm (7.2.30-1+ubuntu18.04.1+deb.sury.org+1) ...
Processing triggers for systemd (237-3ubuntu10.39) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for ureadahead (0.100.0-21) ...
Processing triggers for php7.2-fpm (7.2.30-1+ubuntu18.04.1+deb.sury.org+1) ...
[22:17 root@onssd2 ~] > systemctl restart php7.2-fpm

重新安装php后,问题解决了。可以打开面板了。

我是使用下面的一键安装命令安装的:

bash <(wget -qO- https://git.io/qbox-lite -o /dev/null) -u piaoyun -p 123456 --with-ffmpeg -P 4848--no-bbr --with-qbittorrent --with-deluge --with-linuxrar --with-cf --hostname onssd2 --reboot

from quickbox-lite.

amefs avatar amefs commented on August 23, 2024

无法通过这些命令在虚拟机中重复该结果。因此认为这可能这是因为 online.net 的源,或者网络的一些偶然问题导致的。

from quickbox-lite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.