[GH-ISSUE #240] 无法正常管理streams/Unable to manage streams properly #1471

Closed
opened 2026-02-27 12:10:58 +03:00 by kerem · 4 comments
Owner

Originally created by @XZ1314XZ on GitHub (Dec 17, 2023).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/240

尝试手动去创建/etc/nginx/streams-available目录,但仍然报错。

系统:centos-8.5.2111
安装方式:docker-compose
docker-compose配置:

version: '3.8'
services:
    nginx-ui:
        container_name: nginx-ui
        restart: always
        environment:
            - TZ=Asia/Shanghai
        volumes:
            - './appdata/nginx:/etc/nginx'
            - './appdata/nginx-ui:/etc/nginx-ui'
            - '/www/wwwroot:/var/www'
        ports:
            - 8080:80
            - 8443:443
        image: 'uozi/nginx-ui:latest'    
        networks:
            - nginx-net

networks:
  nginx-net:
    driver: bridge        

考虑到可能centos和教程示例的debian不一致,改用当前目录作为配置路径。
系统已安装宝塔面板,通过宝塔面板一键安装了nginx_v1.22.1。


I tried to manually create the /etc/nginx/streams-available directory, but I still encountered an error.

System: CentOS 8.5.2111
Installation method: Docker Compose
Docker Compose configuration:

version: '3.8'
services:
    nginx-ui:
        container_name: nginx-ui
        restart: always
        environment:
            - TZ=Asia/Shanghai
        volumes:
            - './appdata/nginx:/etc/nginx'
            - './appdata/nginx-ui:/etc/nginx-ui'
            - '/www/wwwroot:/var/www'
        ports:
            - 8080:80
            - 8443:443
        image: 'uozi/nginx-ui:latest'    
        networks:
            - nginx-net

networks:
  nginx-net:
    driver: bridge        

Considering that CentOS may differ from the Debian example in the tutorial, I used the current directory as the configuration path.
The system has installed the Baota panel, and I used the Baota panel to install nginx_v1.22.1 with one click.

Snipaste_2023-12-18_05-08-37

Originally created by @XZ1314XZ on GitHub (Dec 17, 2023). Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/240 尝试手动去创建`/etc/nginx/streams-available`目录,但仍然报错。 系统:centos-8.5.2111 安装方式:docker-compose docker-compose配置: ```yml version: '3.8' services: nginx-ui: container_name: nginx-ui restart: always environment: - TZ=Asia/Shanghai volumes: - './appdata/nginx:/etc/nginx' - './appdata/nginx-ui:/etc/nginx-ui' - '/www/wwwroot:/var/www' ports: - 8080:80 - 8443:443 image: 'uozi/nginx-ui:latest' networks: - nginx-net networks: nginx-net: driver: bridge ``` > 考虑到可能centos和教程示例的debian不一致,改用当前目录作为配置路径。 > 系统已安装宝塔面板,通过宝塔面板一键安装了nginx_v1.22.1。 --- I tried to manually create the `/etc/nginx/streams-available` directory, but I still encountered an error. System: CentOS 8.5.2111 Installation method: Docker Compose Docker Compose configuration: ```yml version: '3.8' services: nginx-ui: container_name: nginx-ui restart: always environment: - TZ=Asia/Shanghai volumes: - './appdata/nginx:/etc/nginx' - './appdata/nginx-ui:/etc/nginx-ui' - '/www/wwwroot:/var/www' ports: - 8080:80 - 8443:443 image: 'uozi/nginx-ui:latest' networks: - nginx-net networks: nginx-net: driver: bridge ``` > Considering that CentOS may differ from the Debian example in the tutorial, I used the current directory as the configuration path. > The system has installed the Baota panel, and I used the Baota panel to install nginx_v1.22.1 with one click. ![Snipaste_2023-12-18_05-08-37](https://github.com/0xJacky/nginx-ui/assets/56338784/2e5c5ff4-db05-450f-8a7a-904f7f2a6b44)
kerem closed this issue 2026-02-27 12:10:58 +03:00
Author
Owner

@0xJacky commented on GitHub (Dec 18, 2023):

在容器内 cd /etc/nginx/streams-available 看看输出什么,另外还需要手动创建 streams-enabled

<!-- gh-comment-id:1859357464 --> @0xJacky commented on GitHub (Dec 18, 2023): 在容器内 cd /etc/nginx/streams-available 看看输出什么,另外还需要手动创建 streams-enabled
Author
Owner

@XZ1314XZ commented on GitHub (Dec 18, 2023):

容器内部:

root@040c2a1a96ad:/app#  cd /etc/nginx/streams-available
bash: cd: /etc/nginx/streams-available: No such file or directory
<!-- gh-comment-id:1860477081 --> @XZ1314XZ commented on GitHub (Dec 18, 2023): 容器内部: ```sh root@040c2a1a96ad:/app# cd /etc/nginx/streams-available bash: cd: /etc/nginx/streams-available: No such file or directory
Author
Owner

@0xJacky commented on GitHub (Dec 18, 2023):

所以你的文件夹是创建到宿主机去了吗?

<!-- gh-comment-id:1860481345 --> @0xJacky commented on GitHub (Dec 18, 2023): 所以你的文件夹是创建到宿主机去了吗?
Author
Owner

@XZ1314XZ commented on GitHub (Dec 18, 2023):

好的,没有错误提示了,在容器内部手动创建目录mkdir -p /etc/nginx/streams-available,我原本只是在宿主机创建

<!-- gh-comment-id:1860487611 --> @XZ1314XZ commented on GitHub (Dec 18, 2023): 好的,没有错误提示了,在容器内部手动创建目录`mkdir -p /etc/nginx/streams-available`,我原本只是在宿主机创建
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-ui#1471
No description provided.