在linux vps上。
git clone https://github.com/shenfeng/nio-httpserver
cd nio-httpserver
mvn package
(在当前目录下,会生成target 目录)
cd target
java -jar httpserver-1.0-SNAPSHOT.jar 2345
然后,在你本地机器的浏览器上,访问vps-public-ip:2345
项目地址:https://github.com/shenfeng/nio-httpserver
No comments:
Post a Comment