1. Nginx 설치
<code>apt-<span>get</span> install nginx</code>
2. Nginx 시작
<code>service nginx <span><span>start</span></span></code>
3.
"Welcome to nginx!"가 보이면 설치가 완료된 것입니다.
4. PHP 설치
<code>apt<span>-get</span> install php5<span>-fpm</span></code>
<code><span>vi</span> /etc/nginx/sites-available/<span><span>default</span></span></code>
<code>location ~ \.php$ { <span><span>include</span> snippets/fastcgi-php.conf;</span> fastcgi_pass unix:/<span>var</span>/run/php5-fpm.sock; }</code>
<code>service nginx restart</code>
<code>vi /<span>var</span>/www/html/test.php</code>
<code><span><span><?php</span><span>echo</span> phpinfo(); <span>?></span></span></code>