nginx를 깔았는데... 이제 뭘해야지.... 감도 못잡고 있었어요.....

근처에 was여신님(^------------^)께서 "APM이 뭔 줄 알아요?" 하셔서...
(속으로... 당연히 Application Performance Management........)이랬는데!!!

APM이 Apache, PHP, MySQL이라시며... "PHP, MySQL깔아보세요~"라고 조언을 주셔서 한번 깔아보겠습니다!

Apache에 APM이라면... Windows Nginx엔  WEMP,WNMP라는게 있더라구요!

WEMP = Windows + Enginx + MySQL + PHP

WNMP= Windows + Nginx + MariaDB + PHP

한번 깔아보았습니다!
MariaDB, MySQL 둘 다 잘 몰라서...
MariaDB로 깔아봤습니다.


2014년 3월 21일에 Update됐구요, 소프트웨어 버전은 아래와
같습니다!

* Nginx 1.5.12
* MariaDB 5.5.36
* PHP 5.5.10 (Non Thread Safe + FastCGI)
* phpMyAdmin 4.1.9

Wnmp-2.0.11.exe를 다운받아 실행하면 c:\wnmp 폴더가 생깁니다.

Wnmp.exe 실행 후 Start all 버튼을 누르면 Nginx, MariaDB, PHP가 실행됩니다.

config버튼 누르면 php는 php.ini확인 가능하고, MariaDB는 my.ini, Nginx는 아래 그림처럼 확인 가능합니다!

Logs 버튼은 PHP는 sys.log, Nginx는 access.log, error.log, localhost_access.log, localhost_error.log 확인 가능합니다.

nginx.conf 를 보면 아래와 같이 setting되어 있구요,

server {
    listen 80; # IPv4
    server_name localhost;

    ## Parameterization using hostname of access and log filenames.
    access_log logs/localhost_access.log;
    error_log logs/localhost_error.log;

    ## Root and index files.
    root html;
    index  index.php index.html index.htm;

    location / {

        ## Regular PHP processing.
        location ~ \.php$ {
            root           html;
   try_files  $uri =404;
            fastcgi_pass   127.0.0.1:9000;
            fastcgi_index  index.php;
            fastcgi_param  SCRIPT_FILENAME    $document_root$fastcgi_script_name;
            include        fastcgi_params;
        }

 

php.ini에는 아래와 같이 setting이 되어 있습니다.

; http://php.net/extension-dir
; extension_dir = "./"
; On windows:
extension_dir = "ext"

[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = America/New_York

 

http://localhost/ 를 실행시키면 아래와 같은 화면이 보입니다.

 

 

오늘은... WNMP설치기였습니다!

흐흑... 언제쯤... 유용한 정보 들고와서 사람구실좀 할까요... ㅠㅠㅠㅠ