/dog_catch_1_duck.svg

张理坤的博客

快速搭建ipsec Vpn

安装Docker curl -fsSL get.docker.com | bash sudo usermod -aG docker $USER 启动服务 docker run \ --name ipsec-vpn-server \ --restart=always \ -v $(pwd)/ikev2-vpn-data:/etc/ipsec.d \ -p 500:500/udp \ -p 4500:4500/udp \ -d --privileged \ --restart=always \ hwdsl2/ipsec-vpn-server 将ikev2-vpn-data文件复制到本地 在ik

Nginx Status监控

server { listen 8080; access_log off; location /nginx_status { stub_status on; } 这个时候请求,返回 curl localhost:8080/nginx_status Active connections: 1 server accepts handled requests 7 7 6 Reading: 0 Writing: 1 Waiting: 0