The title is as it is. Others have posted on Qiita, but I created it for the link of future articles.
OS X 10.12.4 Python 3.5.1
If you have python installed
python -m http.server 8000
(8000 can be changed by port number)`Serving HTTP on 0.0.0.0 port 8000 ...`
is output, the construction is completed. python -m SimpleHTTPServer 8000
python ...` `` (processed as python2), enter
python3 -m http.server 8000```Create index.html in ~ / Sample. Write the following content.
index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
Tesuto
</body>
</html>
Run python -m http.server 8000
in ~ / Sample.
If you type http: // localhost: 8000
in your browser, you will see a page like the one below.
I think that the method using Apache is major, so if you are interested, please google. I may write an article if I have time.