This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DAEMON_PATH="/home/ubuntu/components/rms" | |
DAEMON="rmsapp.jar" | |
DAEMONOPTS="log4j.properties config.properties" | |
JAVABIN="/usr/bin/java -jar" | |
NAME="rmsapp" | |
DESC="1 minute delayed price stream from globalfeed" | |
PIDFILE=/var/run/$NAME.pid |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
check process price with pidfile /var/run/price.pid | |
start program = "/bin/bash /home/ubuntu/etc/init_globalfeed.sh start" | |
stop program = "/bin/bash /home/ubuntu/etc/init_globalfeed.sh stop" | |
check process proxy with pidfile /var/run/proxy-server.pid | |
start program = "/bin/bash /home/ubuntu/etc/init_proxy.sh start" | |
stop program = "/bin/bash /home/ubuntu/etc/init_proxy.sh stop" | |
depends on price | |
check process quote with pidfile /var/run/quoteupdate.pid |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo add-apt-repository ppa:webupd8team/java | |
sudo apt-get update | |
sudo apt-get install oracle-java8-installer | |
add these in /etc/environment | |
JAVA_HOME=/usr/lib/jvm/java-8-oracle | |
JRE_HOME=/usr/lib/jvm/java-8-oracle/jre | |
do : source /etc/environment | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install mysql-server-5.7 | |
sudo service mysql stop | |
sudo mkdir -p /var/run/mysqld | |
sudo chown mysql:mysql /var/run/mysqld | |
sudo mysqld_safe --skip-grant-tables --skip-syslog --skip-networking | |
open new terminal and enter : mysql -uroot |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo iptables --flush | |
sudo iptables --delete-chain | |
allow loopback | |
sudo iptables -A INPUT -i lo -j ACCEPT | |
sudo iptables -A OUTPUT -o lo -j ACCEPT | |
allow established connections |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* download jar file from https://www.bouncycastle.org/latest_releases.html | |
* go to jre\lib\security\java.security [/Library/Java/JavaVirtualMachines/jdk1.8.0_212.jdk/Contents/Home/jre/lib in mac] | |
* add following to the file : security.provider.{10}=org.bouncycastle.jce.provider.BouncyCastleProvider | |
* copy downloaded jar to jre\lib\ext |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysqldump command with db +/- table | sed -e "s/([0-9]*,/(NULL,/g" > 1.sql |