Skip to content

Instantly share code, notes, and snippets.

View braseidon's full-sized avatar

Brandon Johnson braseidon

  • Poseidon Web Studios
  • USA
View GitHub Profile
#!/usr/bin/env bash
cd ~
# open port 80
sudo iptables -I INPUT 5 -p tcp -m tcp --dport 80 -j ACCEPT
sudo /sbin/service iptables save
sudo service iptables restart
# ------------------------------------------------------------------------------
#!/bin/sh
#
# redis - this script starts and stops the redis-server daemon
#
# chkconfig: - 85 15
# description: Redis is a persistent key-value database
# processname: redis-server
# config: /etc/redis/redis.conf
# config: /etc/sysconfig/redis
# pidfile: /var/run/redis.pid