Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macos下如何运行? #29

Open
scarlettliuu opened this issue Nov 11, 2020 · 2 comments
Open

macos下如何运行? #29

scarlettliuu opened this issue Nov 11, 2020 · 2 comments

Comments

@scarlettliuu
Copy link

scarlettliuu commented Nov 11, 2020

完全新手,想先把它跑起来,但真的不知道咋运行。。
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
Copy link

OneMiay commented Nov 23, 2020

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

@Swayingleaves
Copy link

  • 下载项目仓库代码到本地

  • 本地确保有go ≥1.19环境

  • 初始化module

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants