chan

command module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2022 License: MIT Imports: 3 Imported by: 0

README

chan

chan (蝉)是一个Web服务器,用于提供Web服务、反向代理

功能模块

  • 静态资源服务
  • 配置模板封装
    • 基础配置
    • SSL配置
    • 支持多域名的TLS服务
  • 反向代理
  • 负载均衡
    • 轮询
    • 加权轮询
  • 命令行
    • version 获取版本
    • run 运行
    • start 启动
    • stop 停止
    • restart 重启
    • conf 获取配置文件路径

快速上手

  • 运行(run)
# 不指定配置文件,默认在80端口启动一个服务
chan run
# 使用指定的配置文件路径启动Web服务
chan run -t 配置文件路径
chan run -t ./conf/chan.json
  • 启动(start),支持后台运行
# 不指定配置文件,默认在80端口启动一个服务
chan start
# 使用指定的配置文件路径启动Web服务
chan start -t 配置文件路径
chan start -t ./conf/chan.json
  • 停止(stop)
chan stop 
  • 重启(restart)
# 不指定配置文件,默认在80端口启动一个服务
chan restart 
# 使用指定的配置文件路径启动Web服务
chan restart -t 配置文件路径
chan restart -t ./conf/chan.json
  • 配置(conf)
chan conf 

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cli

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL