1

我安装了 Nginx 单元

systemctl status unit
● unit.service - NGINX Unit
     Loaded: loaded (/lib/systemd/system/unit.service; enabled; vendor preset: enabled)
     Active: active (running) since Thu 2021-09-02 15:33:30 JST; 4min 29s ago
    Process: 2288597 ExecStart=/usr/sbin/unitd $DAEMON_ARGS (code=exited, status=0/SUCCESS)
   Main PID: 2288600 (unitd)
      Tasks: 3 (limit: 2282)
     Memory: 5.6M
     CGroup: /system.slice/unit.service
             ├─2288600 unit: main v1.25.0 [/usr/sbin/unitd]
             ├─2288613 unit: controller
             └─2288614 unit: router

Sep 02 15:33:30 tk2-243-31156 systemd[1]: Starting NGINX Unit...
Sep 02 15:33:30 tk2-243-31156 unitd[2288597]: 2021/09/02 15:33:30 [info] 2288597#2288597 unit started
Sep 02 15:33:30 tk2-243-31156 systemd[1]: Started NGINX Unit.

现在,我尝试先测试

sudo curl --unix-socket /var/run/unit/control.sock http://localhost/

但是它返回卷曲:(7) Couldn't connect to server

我猜这个服务apache有效,所以使用端口 80....

有什么解决办法吗??

4

0 回答 0