Skip to content

Instantly share code, notes, and snippets.

@emad-elsaid
Created August 4, 2014 07:12
Show Gist options
  • Save emad-elsaid/2c2524440e30a91273ce to your computer and use it in GitHub Desktop.
Save emad-elsaid/2c2524440e30a91273ce to your computer and use it in GitHub Desktop.
ruby server and allow port on centos
$ ruby -run -e httpd . -p 9090
# iptables -A INPUT -p tcp -m tcp --dport 9090 -j ACCEPT
# iptables -F
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment