(Owed by: 春夜喜雨 http://blog.youkuaiyun.com/chunyexiyu)
关于网页相关的开发:
web服务器:Nginx/apache(tomcat/jboss)
数据库服务:Mysql/sqlserver
前台开发:JQuery/Dreamweaver html +JS+ +CSS
后台开发:Php/java/c#.net
(jsp,asp之前用于的前后台已不再使用,asp进化到了.net,常用C#.net, vb.net)
1. Nginx/apache(tomcat/jboss) (web服务器)
2. Mysql/sqlserver (数据库服务)
3. JQuery/Dreamweaver/前台
4. Php/java/c#.net后台
参考:http://blog.youkuaiyun.com/bruce_wang_janet/article/details/8104495
下载注意事项:
1. 建议下载stable版本(稳定版本)
2. 下载win版本
nginx下载:
http://nginx.org/en/download.html
php下载:
http://www.php.net/downloads.php
解压安装后;执行下一步启动
启动:
1. 修改nginx/conf/nginx.conf文件中对应的php配置部分,如下:
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 # 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; } |
特别需要注意的是:fastcgi_param这个参数默认的是$fastcgi_script_name;最好改为$document_root$fastcgi_script_name;
2. nginx启动
start nginx.exe
以start的方式运行,nginx不需要一直占有cmd窗口,这样方便之后调试时,随时重载配置文件。
3. php启动:
php-cgi -b 9000 –q
如果运行php出现VCRUNTIME140.dll问题:参考
http://www.cnblogs.com/freeweb/p/5023020.html
测试:
在nginx/html下面,新建一个phpinfo.php文件,写一个phpinfo的测试文件
<?php phpinfo(); ?> |
尝试访问:
访问成功,说明nginx启动ok
尝试访问
访问成功,说明php配置执行ok
(Owed by: 春夜喜雨 http://blog.youkuaiyun.com/chunyexiyu)