4 ms·
Another useful one; Fire up a instant web-server from local folder on http://localhost:8080 http://localhost:8080: > python -m SimpleHTTPServer
by lordlarm 14y ago
Another useful one; Fire up a instant web-server from local folder on http://localhost:8080 http://localhost:8080:
> python -m SimpleHTTPServer
- bgaluszka 14y agoOr if you use php (5.4 needed) > php -S localhost:8080
- axitanull 14y agoAlso in case you need to use another port (such as 5000): > python -m SimpleHTTPServer 5000
- dudus 14y agoNote that it has changed in python3 > python3 -m http.server Serving HTTP on 0.0.0.0 port 8000 ... > python3 -m http.server 8080 Serving HTTP on 0.0.0.0 port 8080 ...
- agumonkey 14y agosmtp server one liner : $ sudo python -m smtpd -n -c DebuggingServer localhost:25