@echo off rem 提供Windows下nginx的启动,重启,关闭功能 echo ==================begin======================== cls ::ngxin 所在的盘符 set NGINX_PATH=E: ::nginx 所在目录 set NGINX_DIR=E:\service\1\nginx-1.16.0\ color 0a TITLE Nginx 管理程序增强版 CLS echo. echo. ** Nginx 管理程序 *** ech
linux通常使用GNU C提供的函数getopt.getopt_long.getopt_long_only函数来解析命令行参数. 移植到Windows下 getopt.h #ifndef _GETOPT_H #define _GETOPT_H #ifdef __cplusplus extern "C" { #endif /* For communication from `getopt' to the caller. When `getopt' finds an option tha