{"id":21617,"date":"2014-07-24T21:13:11","date_gmt":"2014-07-24T12:13:11","guid":{"rendered":"http:\/\/www.softantenna.com\/wp\/?p=21617"},"modified":"2014-07-24T21:13:11","modified_gmt":"2014-07-24T12:13:11","slug":"1-line-python-http-server","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/1-line-python-http-server\/","title":{"rendered":"1\u884c\u306ePython\u30b3\u30fc\u30c9\u3067\u5b9f\u884c\u3067\u304d\u308bWeb\u30b5\u30fc\u30d0\u30fc\u304c\u4fbf\u5229"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2014\/07\/blog1.-Python.jpg\" alt=\"1 Python\" title=\"1. Python.jpg\" border=\"0\" width=\"546\" height=\"289\" \/><\/p>\n<p>Python\u306e\u7d44\u307f\u8fbc\u307fWeb\u30b5\u30fc\u30d0\u30fc\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u3063\u30661\u884c\u3067\u30b7\u30f3\u30d7\u30eb\u306a\u9759\u7684Web\u30b5\u30fc\u30d0\u30fc\u3092\u8d77\u52d5\u3059\u308b\u65b9\u6cd5\u304c\u7d39\u4ecb\u3055\u308c\u3066\u3044\u307e\u3057\u305f(<a href=\"http:\/\/david.ingledow.co.uk\/blog\/simple-static-web-server-1-line-python\/\">Simple Static Web Server with 1 Line of Python<\/a>\u3001<a href=\"https:\/\/news.layervault.com\/stories\/29216-show-dn-simple-static-web-server-with-1-line-of-python\">Designer News<\/a>)\u3002<\/p>\n<p>\u65b9\u6cd5\u306f\u3068\u3066\u3082\u7c21\u5358\u3067\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u958b\u3044\u3066\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3060\u3051\u3002<\/p>\n<pre>\npython -m SimpleHTTPServer 8888\n<\/pre>\n<p>\u30d6\u30e9\u30a6\u30b6\u3067\u300chttp:\/\/localhost:8888\u300d\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308c\u3070\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306e\u30d5\u30a1\u30a4\u30eb\u4e00\u89a7\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059(\u3064\u307e\u308a\u305d\u3053\u304c\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\u306b\u306a\u308b)\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2014\/07\/blogdirectory.jpg\" alt=\"Directory\" title=\"directory.jpg\" border=\"0\" width=\"546\" height=\"260\" \/><\/p>\n<p>\u30ed\u30fc\u30ab\u30eb\u3067Web\u958b\u767a\u3057\u3066\u3044\u308b\u3068\u304d\u306bfile URL\u3060\u3068\u3046\u307e\u304f\u52d5\u304b\u306a\u3044\u5834\u5408\u3082\u3042\u308b\u306e\u3067\u3001\u899a\u3048\u3066\u3044\u305f\u3089\u4f55\u304b\u306e\u3068\u304d\u306b\u4fbf\u5229\u306b\u4f7f\u3048\u305d\u3046\u3067\u3059\u3002.bashrc\u3084.zshrc\u306b\u30a8\u30a4\u30ea\u30a2\u30b9\u3092\u8a2d\u5b9a\u3057\u3066\u304a\u304f\u3068\u3055\u3089\u306b\u4fbf\u5229\u3067\u3059\u306d\u3002<\/p>\n<h3>\u4ed6\u306e\u8a00\u8a9e\u3067\u3082\u53ef\u80fd<\/h3>\n<p>\u3061\u306a\u307f\u306b\u3001<a href=\"https:\/\/news.layervault.com\/stories\/29216-show-dn-simple-static-web-server-with-1-line-of-python\">Designer News<\/a>\u306b\u3088\u308b\u3068\u3001Python\u3060\u3051\u3067\u306a\u304f\u3001Ruby\u3084PHP\u3067\u3082\u540c\u69d8\u306a\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<pre>\n$ python -m SimpleHTTPServer 8000\n$ ruby -run -e httpd . -p 8000\n$ php -S localhost:8000 -t .\n<\/pre>\n<p>\u304a\u597d\u307f\u306e\u8a00\u8a9e\u3067\u3069\u3046\u305e\u301c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Python\u306e\u7d44\u307f\u8fbc\u307fWeb\u30b5\u30fc\u30d0\u30fc\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u3063\u30661\u884c\u3067\u30b7\u30f3\u30d7\u30eb\u306a\u9759\u7684Web\u30b5\u30fc\u30d0\u30fc\u3092\u8d77\u52d5\u3059\u308b\u65b9\u6cd5\u304c\u7d39\u4ecb\u3055\u308c\u3066\u3044\u307e\u3057\u305f(Simple Static Web Server with 1 Line of Python\u3001D [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":21616,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[75],"tags":[2559,703,575],"class_list":["post-21617","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software","tag-httpd","tag-python","tag-web"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/21617","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/comments?post=21617"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/21617\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/21616"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=21617"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=21617"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=21617"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}