server - 数百个 /usr/sbin/apache2 -k start 进程是否会从端口 80 到 3000 杀死我的站点代理?
问题描述
抱歉,我是服务器管理新手。每当我“systemctl restart apache2”时,/usr/sbin/apache2 -k start 进程会立即填满数百个。似乎发生这种情况后,我的网络应用程序(端口 3000)的原始 ipaddress(端口 80)代理不再起作用。但是,我始终可以毫无问题地直接连接到我的 ipaddress:3000。想知道这些进程是否在干扰代理,因为它们达到 :80。还是我在 /etc/apache2/sites-available/000-default.conf 文件中错误地设置了代理?
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
ServerAdmin webmaster@localhost
#DocumentRoot /var/www/html
ProxyPreserveHost On
ProxyRequests On
ProxyPass / http://localhost:3000/
ProxyPassReverse / http://localhost:3000/
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# MaxRequestWorkers: maximum number of server processes allowed to start
# MaxConnectionsPerChild: maximum number of requests a server process serves
<IfModule mpm_prefork_module>
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxRequestWorkers 150
MaxConnectionsPerChild 0
</IfModule>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
top - 15:40:22 up 196 days, 18:45, 2 users, load average: 0.02, 0.01, 0.00
Tasks: 324 total, 1 running, 323 sleeping, 0 stopped, 0 zombie
%Cpu(s): 0.9 us, 0.2 sy, 0.0 ni, 98.8 id, 0.1 wa, 0.0 hi, 0.0 si, 0.0 st
MiB Mem : 16009.1 total, 298.0 free, 1697.5 used, 14013.7 buff/cache
MiB Swap: 0.0 total, 0.0 free, 0.0 used. 13970.2 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
4151496 mysql 20 0 3759520 666068 17920 S 1.3 4.1 14:49.22 /usr/sbin/mysqld
4860 root 20 0 480692 341560 22144 S 6.0 2.1 0:31.14 php cronjob.php
4159 www-data 20 0 225560 14012 7184 S 0.0 0.1 0:00.03 /usr/sbin/apache2 -k start
4154 www-data 20 0 225552 14000 7180 S 0.0 0.1 0:00.03 /usr/sbin/apache2 -k start
4104 www-data 20 0 225536 13976 7172 S 0.0 0.1 0:00.02 /usr/sbin/apache2 -k start
4129 www-data 20 0 225560 13968 7172 S 0.0 0.1 0:00.02 /usr/sbin/apache2 -k start
4125 www-data 20 0 225432 13900 7176 S 0.0 0.1 0:00.01 /usr/sbin/apache2 -k start
4250 www-data 20 0 225552 13888 7200 S 0.0 0.1 0:00.02 /usr/sbin/apache2 -k start
4181 www-data 20 0 225560 13856 7176 S 0.0 0.1 0:00.03 /usr/sbin/apache2 -k start
4112 www-data 20 0 225392 13548 7000 S 0.0 0.1 0:00.02 /usr/sbin/apache2 -k start
4238 www-data 20 0 225560 13528 7000 S 0.0 0.1 0:00.02 /usr/sbin/apache2 -k start
4223 www-data 20 0 225408 13524 6996 S 0.0 0.1 0:00.01 /usr/sbin/apache2 -k start
4224 www-data 20 0 225552 13524 7000 S 0.0 0.1 0:00.04 /usr/sbin/apache2 -k start
4249 www-data 20 0 225408 13524 7000 S 0.0 0.1 0:00.01 /usr/sbin/apache2 -k start
4233 www-data 20 0 225544 13520 7000 S 0.0 0.1 0:00.02 /usr/sbin/apache2 -k start
4241 www-data 20 0 225560 13512 7000 S 0.0 0.1 0:00.02 /usr/sbin/apache2 -k start
4183 www-data 20 0 225552 13504 6976 S 0.0 0.1 0:00.02 /usr/sbin/apache2 -k start
4107 www-data 20 0 225544 13500 6972 S 0.0 0.1 0:00.03 /usr/sbin/apache2 -k start
4153 www-data 20 0 225352 13500 6976 S 0.0 0.1 0:00.01 /usr/sbin/apache2 -k start
4177 www-data 20 0 225408 13500 6976 S 0.0 0.1 0:00.01 /usr/sbin/apache2 -k start
4167 www-data 20 0 225552 13496 6976 S 0.0 0.1 0:00.02 /usr/sbin/apache2 -k start
4182 www-data 20 0 225552 13496 6976 S 0.0 0.1 0:00.02 /usr/sbin/apache2 -k start
4135 www-data 20 0 225432 13492 6968 S 0.0 0.1 0:00.02 /usr/sbin/apache2 -k start
4149 www-data 20 0 225456 13492 6972 S 0.0 0.1 0:00.01 /usr/sbin/apache2 -k start
4170 www-data 20 0 225480 13480 6972 S 0.0 0.1 0:00.02 /usr/sbin/apache2 -k start
4251 www-data 20 0 225560 13324 6452 S 0.0 0.1 0:00.04 /usr/sbin/apache2 -k start
4139 www-data 20 0 225560 13280 6428 S 0.0 0.1 0:00.05 /usr/sbin/apache2 -k start
4229 www-data 20 0 225552 13276 6452 S 0.0 0.1 0:00.02 /usr/sbin/apache2 -k start
4207 www-data 20 0 225560 13268 6432 S 0.0 0.1 0:00.03 /usr/sbin/apache2 -k start
4113 www-data 20 0 225568 13260 6424 S 0.0 0.1 0:00.02 /usr/sbin/apache2 -k start
4228 www-data 20 0 225552 13260 6404 S 0.0 0.1 0:00.03 /usr/sbin/apache2 -k start
在 Chrome 上我得到以下信息:
Try:
Checking the connection
Checking the proxy and the firewall
ERR_TIMED_OUT
解决方案
推荐阅读
- python - 数据框中列上的 .map 的 NaN 错误
- javascript - javascript中回调函数的使用
- r - 如何测试方差不等的组之间多项式(线性)趋势的显着性?
- flutter - 在 null 上调用了 getter 'token'
- azure - 如何在具有 Microsoft Graph 高级权限的 Visual Studio 中本地使用托管服务标识回退到我的 Azure 凭据
- excel - With 语句跟随到函数中
- java - 直布罗陀日期格式:预期类似 GB 的格式,而得到类似美国的格式
- angular - Angular 7 Observable 数字不会更新视图
- java - 获取 OneSignal 通知计数
- amazon-web-services - 如果我不应用更新安全包,亚马逊 AWS 有什么作用吗?