hosts-group

command module
v0.0.0-...-e477a49 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

README

Hosts Group

inspire from SwitchHosts

Just webserver, provide curd api to management hosts file.

hosts file location:

  1. Windows C:\Windows\System32\drivers\etc\hosts
  2. Linux /etc/hosts

Support nginx

  1. sudo ./hosts-group -mode nginx -f /etc/nginx/conf.d/static.conf

Version

1.4.0

  1. simple support nginx config

TODO

  1. independent window

Install

  1. https://codemirror.net/5/ 或者 https://codemirror.net/5/codemirror.zip 下载后,复制对应文件到项目目录中

Linux

go install


Windows

  1. make buildExe
    • only support build via linux ...
  2. run hosts-group.xxx.exe on Windows Administer

blog: exe add icon

Dev Tips

  1. hosts go run . -d -D
  2. nginx go build && sudo ./hosts-group -d -D -mode nginx -f /etc/nginx/conf.d/static.conf

TODO

  1. js 文件缺失
  2. Linux编译打包流程未抽出来

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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