遇到的问题:
No mapping for the Unicode charactor exists in the target multi-byte code page;
解决:nginx的安装目录中不能出现中文,将中文的文件夹名改成英文就可以了
其他:
nginx的下载、安装、启动
1、nginx下载地址: http://nginx.org/en/download.html
我选择的是windows的稳定版本,可以视情况自己选择:
2、下载后解压,可以直接运行nginx.exe运行,也可以运行cmd,输入start nginx
3、修改nginx中的nginx.conf文件
4、修改nginx.conf后重启nginx
5、nginx -t 可以检测你的配置是否正确
6、常用的nginx命令
start nginx :启动nginx
nginx -s reload :修改配置后重新加载生效
nginx -s reopen :重新打开日志文件
nginx -t -c /path/to/nginx.conf 测试nginx配置文件是否正确
关闭nginx:
nginx -s stop :快速停止nginx
quit :完整有序的停止nginx
启动nginx,配置nginx.conf配置文件