假設在windows上輸入如下命令:
E:\mywamp\apache2.\bin>E:\mywamp\nginx-1.6.\nginx.exe -s reload
那么輸入結果就是這樣的:
nginx: [alert] could not open error log file: CreateFile() "logs/error.log" failed (: The system cannot find the path specified) // :: [emerg] #5196: CreateFile() "E:\mywamp\apache2.2\bin/conf/nginx.conf" failed (3: The system cannot find the path specified)
解決方法就是首先cd到目錄E:\mywamp\apache2.2\bin>E:\mywamp\nginx-1.6.2\,然后運行nginx -s reload,感覺這樣太麻煩了,求教有沒有更簡單的方法。