启动gohttpserver服务:
http服务端口4044:nohup ./gohttpserver --upload -a :4044 -r /root &
https服务端口3034:nohup ./gohttpserver --cert cacert.pem --key cakey.pem --upload -a :3034 -r /root &
[root@localhost ~]# netstat -npl | grep gohttp
tcp6 0 0 :::4044 :::* LISTEN 13654/./gohttpserve
tcp6 0 0 :::3034 :::* LISTEN 11038/./gohttpserve
搭建完成,浏览器正常访问ip+端口即可