摘要:
一:登陆域名服务器平台,把域名解析到项目对应的IP上面。 二:配置nginx服务器 1./etc/nginx/conf.d/ 在服务器该目录下,添加.conf文件,如命名为:www.demo.com.conf 2: 重启nginx服务器 使用Xshell等远程登陆工具,执行:nginx -s rel 阅读全文
摘要:
nginx -s reload :修改配置后重新加载生效 nginx -s reopen :重新打开日志文件nginx -t -c /path/to/nginx.conf 测试nginx配置文件是否正确关闭nginx:nginx -s stop :快速停止nginx quit :完整有序的停止ngi 阅读全文
摘要:
新建robots.txt文件,放到网站根目录下面。 robots.txt文件的内容: User-agent:*表示和所有搜索引擎协议适用; Disallow:/表示禁止抓取收录全站。 参考: http://bar.baidu.com/robots/ 阅读全文