登陆linux vps,安装rust环境,然后,
git clone https://github.com/thecoshman/http http-by-thecoshman
cd http-by-thecoshman
cargo build --release
在新生成的target/release/里面会出现可执行文件http:
cd target/release/
./http --auth myusername:mypassword -p 2345
(还提供用户认证,不错。当然,如果你不想设置认证,就不写--auth myusername:mypassword这一段参数)
在浏览器里访问http://vps-public-ip:2345
项目地址:https://github.com/thecoshman/http
No comments:
Post a Comment