1、用nginxphp
首先下載:http://nginx.org/html
在config配置好nginx
server { listen 8088; // 須要配置默認80 server_name meimeibaii.cn; #charset koi8-r; #access_log logs/host.access.log main; #配置hexo博客目錄 root /usr/local/hexo/public location / { // 相對路徑 root html; index index.html index.htm; } #error_page 404 /404.html; # redirect server error pages to the static page /50x.html # error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } # proxy the PHP scripts to Apache listening on 127.0.0.1:80 # #location ~ \.php$ { # proxy_pass http://127.0.0.1; #} # 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 /scripts$fastcgi_script_name; # include fastcgi_params; #} # deny access to .htaccess files, if Apache's document root # concurs with nginx's one # #location ~ /\.ht { # deny all; #} }
方法2、 控制面板 全部控制面板項 程序和功能 啓動或關閉windows功能
internet -information-servicewindows
搜iis internet -information-servicehexo
點擊網站 右擊 添加網站網站
網站名稱隨便起code
而後物理路徑直接打開想要打開的項目orm
輸入ip + 端口就能夠打開了server