The HTTP server on different versions of various scripting languages
In order to facilitate intuitive browsing and get some files from the web server, this time you can try to use the system to support the python, php or ruby command to open an HTTP server or FTP server or other services.
- Python
python 2.x
python -m SimpleHTTPServer 8000 - Ruby
ruby -rwebrick -e’WEBrick::HTTPServer.new(:Port => 3000, :DocumentRoot => Dir.pwd).start’ - Ruby 1.9.2+
- adsf (Ruby)
gem install adsf # install dependency
adsf -p 8000
- Perl
- Plack (Perl)
- http-server (Node.js)
- node-static (Node.js)
npm install -g node-static # install dependency
static -p 8000
- PHP (>= 5.4)
php -S 127.0.0.1:8000 - busybox httpd
busybox httpd -f -p 8000
- webfs
webfsd -F -p 8000 - IIS Express