1. Environment
[lake@DESKTOP-P55Q2H7 ~]$ cat /proc/version
Linux version 3.10.0-957.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC) ) #1 SMP Thu Nov 8 23:39:32 UTC 2018
[lake@DESKTOP-P55Q2H7 ~]$ uname -a
Linux DESKTOP-P55Q2H7.mshome.net 3.10.0-957.el7.x86_64 #1 SMP Thu Nov 8 23:39:32 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
[lake@DESKTOP-P55Q2H7 ~]$
[lake@DESKTOP-P55Q2H7 caddy_v1.0.0_linux_amd64]$ ./caddy -version
v0.0.0-00010101000000-000000000000
[lake@DESKTOP-P55Q2H7 caddy_v1.0.0_linux_amd64]$
2. start
[lake@DESKTOP-P55Q2H7 caddy_v1.0.0_linux_amd64]$ netstat -an --tcp |grep 80
[lake@DESKTOP-P55Q2H7 caddy_v1.0.0_linux_amd64]$ ./caddy
Activating privacy features... done.
Serving HTTP on port 2015
http://:2015
WARNING: File descriptor limit 1024 is too low for production servers. At least 8192 is recommended. Fix with `ulimit -n 8192`.
[lake@DESKTOP-P55Q2H7 ~]$ curl localhost:2015
404 Not Found
3. Test index.html
[lake@DESKTOP-P55Q2H7 ]$ echo "hello world">index.html
[lake@DESKTOP-P55Q2H7 ~]$ curl localhost:2015
hello world
[lake@DESKTOP-P55Q2H7 ~]$