Skip to main content

Posts

Showing posts from December, 2017

Initiating static local HTTP Server using different scripting languages

Initiating HTTP Server using different scripting languages Python     python 2.x         - python -m SimpleHTTPServer 8000     python 3.x         - python -m http.server 8000 http-server (Node.js)     npm install -g http-server # install dependency     http-server -p 8000 node-static (Node.js)     npm install -g node-static # install dependency     static -p 8000 Ruby     ruby -rwebrick -e’WEBrick::HTTPServer.new(:Port => 3000, :DocumentRoot => Dir.pwd).start’     Ruby 1.9.2+         - ruby -run -ehttpd . -p3000     adsf (Ruby)         - gem install adsf # install dependency         - adsf -p 8000 Perl ----     cpan HTTP::Server::Brick # install dependency         - $ perl -MHTTP::Server::Brick -e ‘$s=HTTP::Server::Brick->new(port=>8000); $s->mount(“/”=>{path=>”.”}); $s->start’     Plack (Perl)         - cpan Plack # install dependency         - plackup -MPlack::App::Directory -e ‘Plack::App::Dire

AWS CLI installation procedure in centos/ RHEL

1)  Make sure you have the epel repository installed sudo yum install -y epel-release  2)  Install needed packages sudo yum install -y python2-pip 3)  Install awscli sudo yum install -y awscli 4) Configure awscli aws configure --profile <profile_name> 4) Configure awscli. If you do not add --profile <profile_name> , it will use the default profile. aws configure --profile <profile_name> Using the --profile allows you to create profiles for other accounts using different keys. You can also create profiles for different regions.