在 Ubuntu 18.04 服务器中,我有 Apache(目前运行几个 PHP 站点没有问题)。现在我需要托管一个 .NET 应用程序 (v 3.1)。
按照本教程https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/linux-apache?view=aspnetcore-3.1
如果我没记错的话,该应用程序正在运行
# sudo systemctl status kestrel-helloapp.service
? kestrel-helloapp.service - Example .NET Web API App
Loaded: loaded (/etc/systemd/system/kestrel-helloapp.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2020-03-10 15:27:21 UTC; 1h 33min ago
Main PID: 70301 (dotnet)
Tasks: 15 (limit: 4675)
CGroup: /system.slice/kestrel-helloapp.service
??70301 /usr/bin/dotnet /var/www/helloapp/NetTest.dll
Mar 10 15:27:22 Clk-Dev-UbuntuApache-01 dotnet-example[70301]: info: Microsoft.Hosting.Lifetime[0]
Mar 10 15:27:22 Clk-Dev-UbuntuApache-01 dotnet-example[70301]: Now listening on: http://localhost:5000
Mar 10 15:27:22 Clk-Dev-UbuntuApache-01 dotnet-example[70301]: info: …Run Code Online (Sandbox Code Playgroud) 在 OpenLiteSpeed 服务器中,我用来php_info()查找路径php.ini
Loaded Configuration File /usr/local/lsws/lsphp73/etc/php/7.3/litespeed/php.ini
然后我编辑max_input_vars并尝试了多种方法来重新启动 OpenLiteSpeed 以应用更改,但没有任何效果。
php_info()显示旧值max_input_vars