
Запуск web-сервера из командной строки
Node.js
node.js для статических файлов:
npm install -g node-static # install dependency static -p 8000
node.js httpd-сервер:
npm install -g http-server # install dependency http-server -p 8000
perl
Perl
cpan HTTP::Server::Brick # install dependency perl -MHTTP::Server::Brick -e '$s=HTTP::Server::Brick->new(port=>8000); $s->mount("/"=>{path=>"."}); $s->start'
или
cpan Plack # install dependency plackup -MPlack::App::Directory -e 'Plack::App::Directory->new(root=>".");' -p 8000 Mojolicious (Perl)
или
cpan Mojolicious::Lite # install dependency perl -MMojolicious::Lite -MCwd -e 'app->static->paths->[0]=getcwd; app->start' daemon -l http://*:8000
PHP
php -S 127.0.0.1:8000