发表于: 2016-05-12 21:29:39
1 1591
今天把task1 完成了,我总结了我是如何来完成task1 的。
1.通过W3School 知道了什么是HTML,HTML 标签,学习4个实例, 套用HTML 图像 实例,编辑九宫图HTML 文件。
<body>
</html>
2.通过【IT修真院系列】nginx如何配置?https://www.zhihu.com/question/41430703?from=profile_question_card 资源,下载安装及配置nginx
1>.请打开nginx文件夹下的conf文件夹,里面有个nginx.conf文件,用阅读工具如记事本之类打开它;
作者:古尘
链接:https://www.zhihu.com/question/41430703/answer/90941634
来源:知乎
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
将其中的
location / {
root html; index index.php index.html index.htm; }改为 location / { root /home/www; index index.php index.html index.htm; }然后再将location ~ \.php$ { root html; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; }改为location ~ \.php$ { root /home/www; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; }然后重启nginx
2> 之前是在C:\nginx-1.10.0 下建立home/www 文件夹,并且把九宫图html 文件重命名为 index.html,然后放到 c:\nginx-1.10.0\home\www 文件夹下面, 试了不成功,然后检查log, 发现提示:2016/05/12 20:35:57 [error] 19720#25084: *2 "C:/home/www/index.html" is not found (3: The system cannot find the path specified), client: 127.0.0.1, server: localhost, request: "GET / HTTP/1.1", host: "localhost", 所以就把home/www 文件夹 转移到C:\ 根目录下,这个时候打开网页输入localhost时,就会出现task1 的内容。
3. 现在还不会用IP 网页链接把自己的TASK 1 贴出来给大家看看,看看做的对不对。
4. 我是用的WINdows 系统做的,明天用手机试试看
评论