SlideShare uma empresa Scribd logo
1 de 29
Baixar para ler offline
Nginx

                                  Web
                          2011.11.11




Friday, November 11, 11
who

                          qphoney

                          @iara




                          qpstudy



Friday, November 11, 11
Friday, November 11, 11
source

Friday, November 11, 11
gcc,pcre,zlib,OpenSSL
               (windows   )

Friday, November 11, 11
sourcecode


                               1.0.7

Friday, November 11, 11
$ cd ~/src
  % wget http://nginx.org/download/nginx-1.0.7.tar.gz
  % wget http://nginx.org/download/nginx-1.0.7.tar.gz.asc
  % gpg nginx-1.0.7.tar.gz.asc
  gpg: 2011 10 01 00 38 24 JST DSA ID A524C53E


  gpg:                    :




Friday, November 11, 11
% gpg --keyserver pgpkeys.mit.edu --recv-key A524C53E
  % gpg --verify nginx-1.0.7.tar.gz.asc nginx-1.0.7.tar.gz




Friday, November 11, 11
% tar zxf nginx-1.0.7.tar.gz
    % cd nginx-1.0.7
    % ls -l
    CHANGES CHANGES.ru LICENSE README auto conf
    configure contrib html man src




Friday, November 11, 11
% ./configure
   % make && sudo make install




Friday, November 11, 11
/usr/local/nginx/



Friday, November 11, 11
% /usr/local/nginx/sbin/nginx -v
 nginx: nginx version: nginx/1.0.7




Friday, November 11, 11
% export NGINX_HOME=/usr/local/nginx
   % ls -l $NGINX_HOME
        24
   drwxr-xr-x 6 root root 4096 11    10 17:40 .
   drwxr-xr-x 13 root root 4096 11   10 17:40 ..
   drwxr-xr-x 2 root root 4096 11    10 17:40 conf ←
   drwxr-xr-x 2 root root 4096 11    10 17:40 html ← DocRoot
   drwxr-xr-x 2 root root 4096 11    10 17:40 logs ←
   drwxr-xr-x 2 root root 4096 11    10 17:40 sbin ←




Friday, November 11, 11
Friday, November 11, 11
sourcecode




Friday, November 11, 11
% cd $NGINX_HOME/sbin/
    % ls -l
    -rwxr-xr-x 1 root root 857849 11   10 17:40 nginx




Friday, November 11, 11
% sudo vi $NGINX_HOME/conf/nginx.conf
      35 server {
      36      listen   8080;
      37      server_name localhost;




Friday, November 11, 11
% wget http://nginx.org/download/nginx-1.0.8.tar.gz
    % wget http://nginx.org/download/nginx-1.0.8.tar.gz.asc
    % gpg --verify nginx-1.0.8.tar.gz.asc nginx-1.0.8.tar.gz
    gpg: 2011 10 01 15 05 34 JST DSA ID A524C53E


    gpg: “Igor Sysoev <igor@sysoev.ru>”




Friday, November 11, 11
% tar zxf nginx-1.0.8.tar.gz
   % cd nginx-1.0.8
   % ./configure
   % make && sudo make install




Friday, November 11, 11
% cd $NGINX_HOME/sbin/
   % ls -l
   -rwxr-xr-x 1 root root 857849 11   10 18:08 nginx
   -rwxr-xr-x 1 root root 857849 11   10 17:40 nginx.old




Friday, November 11, 11
conf




Friday, November 11, 11
2
Friday, November 11, 11
yum

Friday, November 11, 11
% sudo vi /etc/yum.repos.d/nginx.repo
    1 [nginx]
    2 name=nginx repo
    3 baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
    4 gpgcheck=0
    5 enabled=1

 % sudo yum install nginx




Friday, November 11, 11
% sudo vi /etc/yum.repos.d/nginx.repo
    1 [nginx]
    2 name=nginx repo
    3 baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
    4 gpgcheck=0
    5 enabled=1

 % sudo yum install nginx




Friday, November 11, 11
3
Friday, November 11, 11
Friday, November 11, 11
Thanks!!

Friday, November 11, 11
Friday, November 11, 11

Mais conteúdo relacionado

Mais procurados

Безопасность интернет-приложений осень 2013 лекция 7
Безопасность интернет-приложений осень 2013 лекция 7Безопасность интернет-приложений осень 2013 лекция 7
Безопасность интернет-приложений осень 2013 лекция 7
Technopark
 
Nginx وب سروری برای تمام فصول
Nginx وب سروری برای تمام فصولNginx وب سروری برای تمام فصول
Nginx وب سروری برای تمام فصول
efazati
 
Pound & Varnish - Cache e Balanceamento de Carga
Pound & Varnish - Cache e Balanceamento de CargaPound & Varnish - Cache e Balanceamento de Carga
Pound & Varnish - Cache e Balanceamento de Carga
gsroma
 

Mais procurados (20)

NSClient Workshop: 04 Protocols
NSClient Workshop: 04 ProtocolsNSClient Workshop: 04 Protocols
NSClient Workshop: 04 Protocols
 
Helpful pre commit hooks for Python and Django
Helpful pre commit hooks for Python and DjangoHelpful pre commit hooks for Python and Django
Helpful pre commit hooks for Python and Django
 
My journey from PHP to Node.js
My journey from PHP to Node.jsMy journey from PHP to Node.js
My journey from PHP to Node.js
 
Rihards Olups - Encrypting Daemon Traffic With Zabbix 3.0
Rihards Olups - Encrypting Daemon Traffic With Zabbix 3.0Rihards Olups - Encrypting Daemon Traffic With Zabbix 3.0
Rihards Olups - Encrypting Daemon Traffic With Zabbix 3.0
 
Безопасность интернет-приложений осень 2013 лекция 7
Безопасность интернет-приложений осень 2013 лекция 7Безопасность интернет-приложений осень 2013 лекция 7
Безопасность интернет-приложений осень 2013 лекция 7
 
PFIセミナー資料 H27.10.22
PFIセミナー資料 H27.10.22PFIセミナー資料 H27.10.22
PFIセミナー資料 H27.10.22
 
Ansible ssh y comandos ad-hoc
Ansible ssh y comandos ad-hocAnsible ssh y comandos ad-hoc
Ansible ssh y comandos ad-hoc
 
Nginx2
Nginx2Nginx2
Nginx2
 
Nginx وب سروری برای تمام فصول
Nginx وب سروری برای تمام فصولNginx وب سروری برای تمام فصول
Nginx وب سروری برای تمام فصول
 
Pound & Varnish - Cache e Balanceamento de Carga
Pound & Varnish - Cache e Balanceamento de CargaPound & Varnish - Cache e Balanceamento de Carga
Pound & Varnish - Cache e Balanceamento de Carga
 
Docker SDN (software-defined-networking) JUG
Docker SDN (software-defined-networking) JUGDocker SDN (software-defined-networking) JUG
Docker SDN (software-defined-networking) JUG
 
Nmap Scripting Engine and http-enumeration
Nmap Scripting Engine and http-enumerationNmap Scripting Engine and http-enumeration
Nmap Scripting Engine and http-enumeration
 
Nessus scan report using microsoft patchs scan policy - Tareq Hanaysha
Nessus scan report using microsoft patchs scan policy - Tareq HanayshaNessus scan report using microsoft patchs scan policy - Tareq Hanaysha
Nessus scan report using microsoft patchs scan policy - Tareq Hanaysha
 
3 manual installation of open vpn
3 manual installation of open vpn3 manual installation of open vpn
3 manual installation of open vpn
 
Application Logging With Logstash
Application Logging With LogstashApplication Logging With Logstash
Application Logging With Logstash
 
How to build a container monitoring solution - David Gildeh, CEO and Co-Found...
How to build a container monitoring solution - David Gildeh, CEO and Co-Found...How to build a container monitoring solution - David Gildeh, CEO and Co-Found...
How to build a container monitoring solution - David Gildeh, CEO and Co-Found...
 
Migrating a large code-base to containers by Doug Johnson and Jonathan Lozins...
Migrating a large code-base to containers by Doug Johnson and Jonathan Lozins...Migrating a large code-base to containers by Doug Johnson and Jonathan Lozins...
Migrating a large code-base to containers by Doug Johnson and Jonathan Lozins...
 
Steam Learn: Composer
Steam Learn: ComposerSteam Learn: Composer
Steam Learn: Composer
 
Docker remote-api
Docker remote-apiDocker remote-api
Docker remote-api
 
Building a network emulator with Docker and Open vSwitch
Building a network emulator with Docker and Open vSwitchBuilding a network emulator with Docker and Open vSwitch
Building a network emulator with Docker and Open vSwitch
 

Destaque (8)

お悩みLT
お悩みLTお悩みLT
お悩みLT
 
qpstudy02
qpstudy02qpstudy02
qpstudy02
 
都市地區機車管制策略之研究
都市地區機車管制策略之研究都市地區機車管制策略之研究
都市地區機車管制策略之研究
 
60人くらいが参加する勉強会を支える技術
60人くらいが参加する勉強会を支える技術60人くらいが参加する勉強会を支える技術
60人くらいが参加する勉強会を支える技術
 
Sfstudy02 team UKETSUKE
Sfstudy02 team UKETSUKESfstudy02 team UKETSUKE
Sfstudy02 team UKETSUKE
 
Jaws festa-tohoku-zunda cdp
Jaws festa-tohoku-zunda cdpJaws festa-tohoku-zunda cdp
Jaws festa-tohoku-zunda cdp
 
LT入門
LT入門LT入門
LT入門
 
Jaws三都物語 storage gateway
Jaws三都物語 storage gatewayJaws三都物語 storage gateway
Jaws三都物語 storage gateway
 

Semelhante a nginxをソースからインストールしてみたよ

EF09-Installing-Alfresco-components-1-by-1.pdf
EF09-Installing-Alfresco-components-1-by-1.pdfEF09-Installing-Alfresco-components-1-by-1.pdf
EF09-Installing-Alfresco-components-1-by-1.pdf
DangGonz
 
Deploying and maintaining your software with RPM/APT
Deploying and maintaining your software with RPM/APTDeploying and maintaining your software with RPM/APT
Deploying and maintaining your software with RPM/APT
Joshua Thijssen
 
fastcgi_conf and mime_types
fastcgi_conf and mime_typesfastcgi_conf and mime_types
fastcgi_conf and mime_types
Naoya Nakazawa
 
Vinted life embetterment
Vinted life embettermentVinted life embetterment
Vinted life embetterment
Agile Lietuva
 
X64服务器 lnmp服务器部署标准 new
X64服务器 lnmp服务器部署标准 newX64服务器 lnmp服务器部署标准 new
X64服务器 lnmp服务器部署标准 new
Yiwei Ma
 

Semelhante a nginxをソースからインストールしてみたよ (20)

EF09-Installing-Alfresco-components-1-by-1.pdf
EF09-Installing-Alfresco-components-1-by-1.pdfEF09-Installing-Alfresco-components-1-by-1.pdf
EF09-Installing-Alfresco-components-1-by-1.pdf
 
Ef09 installing-alfresco-components-1-by-1
Ef09 installing-alfresco-components-1-by-1Ef09 installing-alfresco-components-1-by-1
Ef09 installing-alfresco-components-1-by-1
 
Introduction to ansible
Introduction to ansibleIntroduction to ansible
Introduction to ansible
 
The MetaCPAN VM for Dummies Part One (Installation)
The MetaCPAN VM for Dummies Part One (Installation)The MetaCPAN VM for Dummies Part One (Installation)
The MetaCPAN VM for Dummies Part One (Installation)
 
wordpress with nginx on virtualization, jail
wordpress with nginx on virtualization, jailwordpress with nginx on virtualization, jail
wordpress with nginx on virtualization, jail
 
Deploying and maintaining your software with RPM/APT
Deploying and maintaining your software with RPM/APTDeploying and maintaining your software with RPM/APT
Deploying and maintaining your software with RPM/APT
 
stackconf 2020 | Speeding up Linux disk encryption by Ignat Korchagin
stackconf 2020 | Speeding up Linux disk encryption by Ignat Korchaginstackconf 2020 | Speeding up Linux disk encryption by Ignat Korchagin
stackconf 2020 | Speeding up Linux disk encryption by Ignat Korchagin
 
Ansible 實戰:top down 觀點
Ansible 實戰:top down 觀點Ansible 實戰:top down 觀點
Ansible 實戰:top down 觀點
 
Montreal On Rails 5 : Rails deployment using : Nginx, Mongrel, Mongrel_cluste...
Montreal On Rails 5 : Rails deployment using : Nginx, Mongrel, Mongrel_cluste...Montreal On Rails 5 : Rails deployment using : Nginx, Mongrel, Mongrel_cluste...
Montreal On Rails 5 : Rails deployment using : Nginx, Mongrel, Mongrel_cluste...
 
fastcgi_conf and mime_types
fastcgi_conf and mime_typesfastcgi_conf and mime_types
fastcgi_conf and mime_types
 
2017-03-11 02 Денис Нелюбин. Docker & Ansible - лучшие друзья DevOps
2017-03-11 02 Денис Нелюбин. Docker & Ansible - лучшие друзья DevOps2017-03-11 02 Денис Нелюбин. Docker & Ansible - лучшие друзья DevOps
2017-03-11 02 Денис Нелюбин. Docker & Ansible - лучшие друзья DevOps
 
Continuous Infrastructure: Modern Puppet for the Jenkins Project - PuppetConf...
Continuous Infrastructure: Modern Puppet for the Jenkins Project - PuppetConf...Continuous Infrastructure: Modern Puppet for the Jenkins Project - PuppetConf...
Continuous Infrastructure: Modern Puppet for the Jenkins Project - PuppetConf...
 
Tutorial to make sure of nginx files starterpack.
Tutorial to make sure of nginx files starterpack.Tutorial to make sure of nginx files starterpack.
Tutorial to make sure of nginx files starterpack.
 
Einführung in Node.js
Einführung in Node.jsEinführung in Node.js
Einführung in Node.js
 
Install elasticsearch, logstash and kibana
Install elasticsearch, logstash and kibana Install elasticsearch, logstash and kibana
Install elasticsearch, logstash and kibana
 
Converting Your Dev Environment to a Docker Stack - php[world]
Converting Your Dev Environment to a Docker Stack - php[world]Converting Your Dev Environment to a Docker Stack - php[world]
Converting Your Dev Environment to a Docker Stack - php[world]
 
Vinted life embetterment
Vinted life embettermentVinted life embetterment
Vinted life embetterment
 
ZFS Talk Part 1
ZFS Talk Part 1ZFS Talk Part 1
ZFS Talk Part 1
 
Hands-On Session Docker
Hands-On Session DockerHands-On Session Docker
Hands-On Session Docker
 
X64服务器 lnmp服务器部署标准 new
X64服务器 lnmp服务器部署标准 newX64服务器 lnmp服务器部署标准 new
X64服务器 lnmp服务器部署标准 new
 

Mais de mamoru tateoka (15)

Jaws festa2016 cloudwatch
Jaws festa2016 cloudwatchJaws festa2016 cloudwatch
Jaws festa2016 cloudwatch
 
2014.10.24 社内
2014.10.24 社内2014.10.24 社内
2014.10.24 社内
 
Vyatta導入事例 Vyatta Users Meeting 2014 spring
Vyatta導入事例 Vyatta Users Meeting 2014 springVyatta導入事例 Vyatta Users Meeting 2014 spring
Vyatta導入事例 Vyatta Users Meeting 2014 spring
 
ラピュタで学ぶAWS re:Generate JAWS-UG札幌
ラピュタで学ぶAWS re:Generate JAWS-UG札幌ラピュタで学ぶAWS re:Generate JAWS-UG札幌
ラピュタで学ぶAWS re:Generate JAWS-UG札幌
 
Enterprize aws
Enterprize awsEnterprize aws
Enterprize aws
 
EBS-1 Grand Prix
EBS-1 Grand PrixEBS-1 Grand Prix
EBS-1 Grand Prix
 
Cloudpack night03
Cloudpack night03Cloudpack night03
Cloudpack night03
 
qpstudy 09
qpstudy 09qpstudy 09
qpstudy 09
 
bphbqp2012
bphbqp2012bphbqp2012
bphbqp2012
 
Bpstudy50
Bpstudy50Bpstudy50
Bpstudy50
 
Table1
Table1Table1
Table1
 
Devlove hangar talks01
Devlove hangar talks01Devlove hangar talks01
Devlove hangar talks01
 
qpstudy04 LT
qpstudy04 LTqpstudy04 LT
qpstudy04 LT
 
qpstudy01
qpstudy01qpstudy01
qpstudy01
 
IT勉強会の勉強会資料1
IT勉強会の勉強会資料1IT勉強会の勉強会資料1
IT勉強会の勉強会資料1
 

Último

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Último (20)

Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 

nginxをソースからインストールしてみたよ