Mercurial > hg > nginx-site
annotate xml/en/docs/howto_setup_development_environment_on_ec2.xml @ 740:46d70031bea9
Documented the recently added "auto" parameter of the
"worker_processes" directive.
author | Andrey Belov <defan@nginx.com> |
---|---|
date | Tue, 23 Oct 2012 09:11:30 +0000 |
parents | 764fbac1b8b4 |
children | d26a60eab2b5 |
rev | line source |
---|---|
386 | 1 <?xml version="1.0"?> |
2 | |
580
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
509
diff
changeset
|
3 <!-- |
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
509
diff
changeset
|
4 Copyright (C) Nginx, Inc. |
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
509
diff
changeset
|
5 --> |
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
509
diff
changeset
|
6 |
386 | 7 <!DOCTYPE article SYSTEM "../../../dtd/article.dtd"> |
8 | |
9 <article name="Setting up development environment with nginx on Amazon EC2" | |
10 link="/en/docs/howto_setup_development_environment_on_ec2.html" | |
589 | 11 lang="en" |
12 rev="1"> | |
386 | 13 |
14 <section> | |
15 | |
16 <para> | |
17 As an ISV participating in AWS Solution Providers Program, nginx is | |
18 offering an automated install script for use with AWS EC2 instances. | |
19 This helper script is targeted at the developers who have just | |
20 started using nginx and EC2, and who would like to get things up quickly | |
21 and efficiently. Please check the action list below in order to | |
22 prepare your virtual machine and nginx configuration. | |
23 </para> | |
24 | |
25 <para> | |
394
245167685006
Fixed grammar, punctuation, and markup.
Ruslan Ermilov <ru@nginx.com>
parents:
386
diff
changeset
|
26 To set up a development environment: |
461 | 27 <list type="bullet"> |
28 <listitem> | |
509 | 29 Follow the |
386 | 30 <link url="http://docs.amazonwebservices.com/AWSEC2/latest/GettingStartedGuide/Welcome.html"> |
31 Get Started with EC2</link> guide to sign up to AWS and | |
32 launch your EC2 instance. Only Amazon Linux is supported, so please | |
394
245167685006
Fixed grammar, punctuation, and markup.
Ruslan Ermilov <ru@nginx.com>
parents:
386
diff
changeset
|
33 choose either “Basic 32-bit Amazon Linux AMI” or |
245167685006
Fixed grammar, punctuation, and markup.
Ruslan Ermilov <ru@nginx.com>
parents:
386
diff
changeset
|
34 “Basic 64-bit Amazon Linux AMI” for an AMI. When configuring |
245167685006
Fixed grammar, punctuation, and markup.
Ruslan Ermilov <ru@nginx.com>
parents:
386
diff
changeset
|
35 the firewall rules, it is necessary to add a rule to accept web |
386 | 36 traffic on port 80. |
461 | 37 </listitem> |
386 | 38 |
461 | 39 <listitem> |
386 | 40 As soon as the new instance is launched, log in to it and |
41 download <literal>aws_nginx_setup.sh</literal> script with the | |
42 following command: | |
43 <programlisting> | |
44 wget http://nginx.org/download/aws_nginx_setup.sh | |
45 </programlisting> | |
46 then run the script with root privileges: | |
47 <programlisting> | |
48 sudo sh ./aws_nginx_setup.sh | |
49 </programlisting> | |
461 | 50 </listitem> |
386 | 51 |
461 | 52 <listitem> |
386 | 53 You will be asked to select what components to install. Currently |
54 it is possible to choose Django, Pyramid, Ruby on Rails or PHP | |
55 development environment. After you have selected the necessary | |
394
245167685006
Fixed grammar, punctuation, and markup.
Ruslan Ermilov <ru@nginx.com>
parents:
386
diff
changeset
|
56 component, the script will automatically prepare its configuration |
386 | 57 for use with nginx. There will be a separate user created too, |
58 and then a sample web application is started to ensure everything | |
59 is working correctly. | |
461 | 60 </listitem> |
386 | 61 |
461 | 62 <listitem> |
386 | 63 After the installation completes and the web application is installed |
394
245167685006
Fixed grammar, punctuation, and markup.
Ruslan Ermilov <ru@nginx.com>
parents:
386
diff
changeset
|
64 in a subdirectory inside <path>/var/www</path>, the script will print how to |
386 | 65 start/stop sample application. For example, the Rails application will |
394
245167685006
Fixed grammar, punctuation, and markup.
Ruslan Ermilov <ru@nginx.com>
parents:
386
diff
changeset
|
66 reside in <path>/var/www/rails</path>, and Rails specific part of nginx |
245167685006
Fixed grammar, punctuation, and markup.
Ruslan Ermilov <ru@nginx.com>
parents:
386
diff
changeset
|
67 configuration will be in <path>/etc/nginx/conf.d/rails.conf</path>. |
245167685006
Fixed grammar, punctuation, and markup.
Ruslan Ermilov <ru@nginx.com>
parents:
386
diff
changeset
|
68 Installed application and configuration files can be used as a basis for |
245167685006
Fixed grammar, punctuation, and markup.
Ruslan Ermilov <ru@nginx.com>
parents:
386
diff
changeset
|
69 further development. |
461 | 70 </listitem> |
386 | 71 </list> |
72 </para> | |
73 | |
74 </section> | |
75 | |
76 </article> |