1.0.9 • Published 7 years ago

switch-hosts v1.0.9

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

switchHosts

hosts visual configuration

注意

若不想自己的host被格式化,用此工具之前赶紧备份下hosts吧!

下载安装

npm install -g switch-hosts


命令行工具

$ switch-hosts -h

  Usage: switch-hosts [command]

  Commands:

    start                  start the switch-hosts server
    startDaemon            start with daemon
    stop                   stop the switch-hosts server
    restart                restart the switch-hosts server

  Options:

    -h, --help     output usage information
    -V, --version  output the version number
    

快速上手

安装成功后,使用start命令开启服务。

$ sudo switch-hosts start

启动完成之后可访问 http://hosts:3003/ 访问服务配置页面。

注意

linux下:可直接使用startDaemon 开启进程

windows下:使用start命令开启服务。

windows下 ctrl + c关闭进程时,进程还在, 若想关闭进程,可参考如下http://happyxiaoyue.sinaapp.com/?p=239

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago