<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Simpel on Marco Gabriel Blog</title>
    <link>https://www.marcogabriel.com/tags/simpel/</link>
    <description>Recent content in Simpel on Marco Gabriel Blog</description>
    <image>
      <title>Marco Gabriel Blog</title>
      <url>https://www.marcogabriel.com/%3Clink%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E</url>
      <link>https://www.marcogabriel.com/%3Clink%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E</link>
    </image>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Sun, 25 Aug 2013 12:08:42 +0200</lastBuildDate>
    <atom:link href="https://www.marcogabriel.com/tags/simpel/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Webserver, simpel</title>
      <link>https://www.marcogabriel.com/posts/621-webserver-simpel/</link>
      <pubDate>Sun, 25 Aug 2013 12:08:42 +0200</pubDate>
      <guid>https://www.marcogabriel.com/posts/621-webserver-simpel/</guid>
      <description>&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;python -m SimpleHTTPServer
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Der Befehl startet einen Webserver, der das aktuelle Verzeichnis über Port 8000 freigibt.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;~# python -m SimpleHTTPServer
Serving HTTP on 0.0.0.0 port 8000 ...
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Man kann also nun über &lt;code&gt;http://&amp;lt;adresse&amp;gt;:8000&lt;/code&gt; auf das Verzeichnis zugreifen. Da Python quasi überall vorhanden ist, werden keine weiteren Freigaben oder Software benötigt. Nicht einmal root Rechte braucht man dafür.&lt;/p&gt;
&lt;p&gt;Wer einen anderen Port bevorzugt, kann diesen noch dahinter angeben:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;python -m SimpleHTTPServer [port]
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;So etwas ähnliches gibt&amp;rsquo;s auch &lt;a href=&#34;http://www.razvantudorica.com/08/web-server-in-one-line-of-bash/&#34;&gt;in Bash&lt;/a&gt;, die obige Lösung finde ich aber einfacher.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
