<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:media="http://search.yahoo.com/mrss/">

<channel>
	<title>Linux Archives - Manish Sanger</title>
	<atom:link href="https://www.manishsanger.com/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.manishsanger.com/tag/linux/</link>
	<description>Java, J2EE, Spring Framework, application security,big data,database,design patterns,hibernate,j2ee,java,jdbc,micro-services,mongodb,multithreading,nosql</description>
	<lastBuildDate>Fri, 15 Dec 2017 07:55:48 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>
	<item>
		<title>Release port on MacOSX and Linux</title>
		<link>https://www.manishsanger.com/release-port-on-macosx-and-linux/</link>
					<comments>https://www.manishsanger.com/release-port-on-macosx-and-linux/#respond</comments>
		
		<dc:creator><![CDATA[manishsanger]]></dc:creator>
		<pubDate>Fri, 15 Dec 2017 06:33:51 +0000</pubDate>
				<category><![CDATA[Installation/SetUp]]></category>
		<category><![CDATA[Port]]></category>
		<category><![CDATA[release port]]></category>
		<category><![CDATA[Linux]]></category>
		<guid isPermaLink="false">https://www.manishsanger.com/?p=258</guid>

					<description><![CDATA[<p>Sometimes when we start application on MacOSx or linux they don&#8217;t start, because an port is already occupied by application which terminated unexpectedly or by some other application. Developers face these kind of issue more frequently, when we run java application in our IDE eclipse or IntelliJ Idea and switch between run/debug or error in [&#8230;]</p>
<p>The post <a href="https://www.manishsanger.com/release-port-on-macosx-and-linux/">Release port on MacOSX and Linux</a> appeared first on <a href="https://www.manishsanger.com">Manish Sanger</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Sometimes when we start application on MacOSx or linux they don&#8217;t start, because an port is already occupied by application which terminated unexpectedly or by some other application. Developers face these kind of issue more frequently, when we run java application in our IDE eclipse or IntelliJ Idea and switch between run/debug or error in run/debug. Now we need to free the port which was occupied by an existing instance of the application or any other application, so that we can run the program again. This is a 2 step process:</p>
<p><strong>1. Find applications running on a particular port</strong><br />
<pre><code class="bash">lsof -i :[port]
</code></pre>
<br />
<strong>2. Kill application running on a port by PID we got from the previous step:</strong><br />
<pre><code class="bash">Kill -9 [PID]
</code></pre>
<p>Here is the screenshot:<br />
<div id="attachment_259" style="width: 927px" class="wp-caption alignnone"><a href="https://www.manishsanger.com/wp-content/uploads/2017/12/Screen-Shot-2017-12-15-at-11.37.35-AM.png"><img fetchpriority="high" decoding="async" aria-describedby="caption-attachment-259" src="https://www.manishsanger.com/wp-content/uploads/2017/12/Screen-Shot-2017-12-15-at-11.37.35-AM.png" alt="free port on MacOSX or linux terminal" width="917" height="73" class="size-full wp-image-259" srcset="https://www.manishsanger.com/wp-content/uploads/2017/12/Screen-Shot-2017-12-15-at-11.37.35-AM.png 917w, https://www.manishsanger.com/wp-content/uploads/2017/12/Screen-Shot-2017-12-15-at-11.37.35-AM-300x24.png 300w, https://www.manishsanger.com/wp-content/uploads/2017/12/Screen-Shot-2017-12-15-at-11.37.35-AM-768x61.png 768w" sizes="(max-width: 917px) 100vw, 917px" /></a><p id="caption-attachment-259" class="wp-caption-text">free port on MacOSX or linux terminal</p></div>
<p>The post <a href="https://www.manishsanger.com/release-port-on-macosx-and-linux/">Release port on MacOSX and Linux</a> appeared first on <a href="https://www.manishsanger.com">Manish Sanger</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.manishsanger.com/release-port-on-macosx-and-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<enclosure url="https://www.manishsanger.com/wp-content/uploads/2017/12/Screen-Shot-2017-12-15-at-11.37.35-AM.png" length="45122" type="image/png"/><media:content url="https://www.manishsanger.com/wp-content/uploads/2017/12/Screen-Shot-2017-12-15-at-11.37.35-AM.png" width="917" height="73" medium="image" type="image/png"/>	</item>
		<item>
		<title>Install Java7 on Linux (Ubuntu 12.04)</title>
		<link>https://www.manishsanger.com/install-java7-on-linuxubuntu-12-04/</link>
					<comments>https://www.manishsanger.com/install-java7-on-linuxubuntu-12-04/#respond</comments>
		
		<dc:creator><![CDATA[manishsanger]]></dc:creator>
		<pubDate>Fri, 12 Apr 2013 10:34:58 +0000</pubDate>
				<category><![CDATA[Installation/SetUp]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Ubuntu 12.04 LTS]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Java 7]]></category>
		<category><![CDATA[install]]></category>
		<guid isPermaLink="false">https://www.manishsanger.com/?p=137</guid>

					<description><![CDATA[<p>If you are running an older version on java on your Ubuntu 12.04 environment, you must remove it before installing Java7. Do the following to remove: If you installed java 7 earlier and having problem with java then you have to do the following to remove it: Installing Oracle Java7 on Ubuntu 12.04 LTS: You [&#8230;]</p>
<p>The post <a href="https://www.manishsanger.com/install-java7-on-linuxubuntu-12-04/">Install Java7 on Linux (Ubuntu 12.04)</a> appeared first on <a href="https://www.manishsanger.com">Manish Sanger</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>If you are running an older version on java on your Ubuntu 12.04 environment, you must remove it before installing Java7. Do the following to remove:</p>
<pre><code class="bash"><p>$sudo apt-get purge openjdk*</p>
</code></pre>
<p>If you installed java 7 earlier and having problem with java then you have to do the following to remove it:</p>
<pre><code class="bash">$sudo rm /var/lib/dpkg/info/oracle-java7-installer*<br />
$sudo apt-get purge oracle-java7-installer*<br />
$sudo rm /etc/apt/sources.list.d/*java*<br />
$sudo apt-get update<br />
</code></pre>
<p>Installing Oracle Java7 on Ubuntu 12.04 LTS:</p>
<pre><code class="bash">$sudo add-apt-repository ppa:webupd8team/java<br />
$sudo apt-get update<br />
$sudo apt-get install oracle-java7-installer<br />
</code></pre>
<p>You will be prompted couple of times for permissions and Oracle Policy agreement [You must be agreed to Oracle policies to install Java :-)].</p>
<p>That&#8217;s it! Now you have Oracle Java7 installed on your Ubuntu 12.04 environment, to check the Java version run the following on terminal:</p>
<pre><code class="bash">$java -version<br />
java version "1.7.0_17"<br />
Java(TM) SE Runtime Environment (build 1.7.0_17-b02)<br />
Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)<br />
</code></pre>
<p>Or You can check the java version by searching java in Ubuntu dashboard.</p>
<p>Oracle Java 7 plugin Control Panel -&gt; General Tab -&gt; About</p>
<p><img decoding="async" class="alignnone size-medium wp-image-156" alt="java7 version Ubuntu 12.04" src="https://www.manishsanger.com/wp-content/uploads/2013/04/java7_version_ui.jpg" width="449" height="607" srcset="https://www.manishsanger.com/wp-content/uploads/2013/04/java7_version_ui.jpg 449w, https://www.manishsanger.com/wp-content/uploads/2013/04/java7_version_ui-221x300.jpg 221w" sizes="(max-width: 449px) 100vw, 449px" /></p>
<p>The post <a href="https://www.manishsanger.com/install-java7-on-linuxubuntu-12-04/">Install Java7 on Linux (Ubuntu 12.04)</a> appeared first on <a href="https://www.manishsanger.com">Manish Sanger</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.manishsanger.com/install-java7-on-linuxubuntu-12-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<enclosure url="https://www.manishsanger.com/wp-content/uploads/2013/04/java7.jpg" length="31913" type="image/jpeg"/><media:content url="https://www.manishsanger.com/wp-content/uploads/2013/04/java7.jpg" width="377" height="277" medium="image" type="image/jpeg"/>	</item>
	</channel>
</rss>
