<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://w.electrodragon.com/w/index.php?action=history&amp;feed=atom&amp;title=Nginx_Install</id>
	<title>Nginx Install - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://w.electrodragon.com/w/index.php?action=history&amp;feed=atom&amp;title=Nginx_Install"/>
	<link rel="alternate" type="text/html" href="https://w.electrodragon.com/w/index.php?title=Nginx_Install&amp;action=history"/>
	<updated>2026-06-08T22:17:42Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.2</generator>
	<entry>
		<id>https://w.electrodragon.com/w/index.php?title=Nginx_Install&amp;diff=26246&amp;oldid=prev</id>
		<title>Chao: Created page with &quot;== install == Remove apache2 * In case for any error, stop apache first:   sudo service apache2 stop  sudo apt-get purge apache2 apache2-utils apache2.2-bin apache2-common  su...&quot;</title>
		<link rel="alternate" type="text/html" href="https://w.electrodragon.com/w/index.php?title=Nginx_Install&amp;diff=26246&amp;oldid=prev"/>
		<updated>2020-05-01T10:46:36Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== install == Remove apache2 * In case for any error, stop apache first:   sudo service apache2 stop  sudo apt-get purge apache2 apache2-utils apache2.2-bin apache2-common  su...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== install ==&lt;br /&gt;
Remove apache2&lt;br /&gt;
* In case for any error, stop apache first: &lt;br /&gt;
 sudo service apache2 stop&lt;br /&gt;
 sudo apt-get purge apache2 apache2-utils apache2.2-bin apache2-common&lt;br /&gt;
 sudo apt-get autoremove&lt;br /&gt;
&lt;br /&gt;
* apt-get install nginx&lt;br /&gt;
* allow gfw -&amp;gt; sudo ufw allow 'Nginx HTTP'&lt;br /&gt;
* Test [[File:Welcome_to_Nginx.png|400px]]&lt;br /&gt;
Restart&lt;br /&gt;
* service nginx start&lt;br /&gt;
* check start status -&amp;gt; systemctl status nginx.service&lt;br /&gt;
* systemctl restart nginx &lt;br /&gt;
&lt;br /&gt;
* Default root folder /var/www/html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Full remove ===&lt;br /&gt;
* sudo apt-get remove nginx nginx-common # Removes all but config files.&lt;br /&gt;
* sudo apt-get purge nginx nginx-common # Removes everything.&lt;br /&gt;
* sudo apt-get autoremove&lt;br /&gt;
=== Upgrade ===&lt;br /&gt;
# Add the sources&lt;br /&gt;
&amp;lt;source lang=&amp;quot;c&amp;quot;&amp;gt;&lt;br /&gt;
sudo echo &amp;quot;&lt;br /&gt;
deb http://packages.dotdeb.org jessie all&lt;br /&gt;
deb http://nginx.org/packages/mainline/debian/ jessie nginx&amp;quot; | sudo tee -a /etc/apt/sources.list&lt;br /&gt;
&lt;br /&gt;
# Add the keys to our system so we trust packages from the sources we added&lt;br /&gt;
cd /tmp&lt;br /&gt;
wget http://www.dotdeb.org/dotdeb.gpg&lt;br /&gt;
sudo apt-key add dotdeb.gpg&lt;br /&gt;
&lt;br /&gt;
wget http://nginx.org/keys/nginx_signing.key&lt;br /&gt;
sudo apt-key add nginx_signing.key&lt;br /&gt;
&lt;br /&gt;
# finally install nginx&lt;br /&gt;
sudo apt update &amp;amp;&amp;amp; sudo apt install nginx-full -y&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[category: Nginx]]&lt;/div&gt;</summary>
		<author><name>Chao</name></author>
	</entry>
</feed>