ilanyu / ReverseProxy

ReverseProxy in golang
https://hub.docker.com/r/ilanyu/golang-reverseproxy/
4.37k stars 1.11k forks source link

macos下如何运行? #29

Open scarlettliuu opened 4 years ago

scarlettliuu commented 4 years ago

完全新手,想先把它跑起来,但真的不知道咋运行。。 go已经下好了,环境变量也ok,输入go version可能看到返回的版本信息; 尝试在终端保存该项目的路径下执行./ReverseProxy_darwin_amd64,报错说: zsh: no such file or directory: ./ReverseProxy_darwin_amd64 我也尝试了go run main.go也不对。。 想问一下大家这个命令:./ReverseProxy_darwin_amd64一定要下载那个jrebel才行么?在终端里不可以直接运行吗?

OneMiay commented 3 years ago

go build -o ReverseProxy_darwin_amd64 cmd.go handle.go main.go

Swayingleaves commented 1 year ago

go mod init ReverseProxy 下载依赖 go mod tidy 运行 go build -o ReverseProxy && ./ReverseProxy