Redis

what is Redis Redis is a key-value storage system. Similar to Memcached, it supports storing relatively many value types, including string, list, set, and zset. These data types support push / pop, add / remove, and intersection and union and difference sets and richer operations, all of which are atomic. On this basis, Redis supports […]

Read more
Master and slave MySQL versions are MySQL5.6.31

Master and slave MySQL versions are MySQL5.6.31 Primary server IP: 192.168.1.178 From the server IP: 192.168.1.145 Master and slave are able to ping each other. A?192.168.1.178?Master? B?192.168.1.145?Slave?   service mysqld stop service mysqld start service mysqld restart   mysql> grant replication slave on *.* to ‘mohan’@’192.168.1.145’ identified by ‘123456’; mysql> flush privileges; vi /etc/my.cnf port=3306 […]

Read more
Setting up MySQL server on aws EC2 instance

Launch an EC2 instance of type Amazon Linux AMI from your aws console. SSH into your ec2 instance ssh -i ec2-user@my_ec2_ip_address Update the instance sudo yum update -y Install the mysqld server sudo yum install -y mysql55-server start the mysqld instance sudo service mysqld start the following command ensure launches mysqld on server restart sudo […]

Read more
Setting git on aws EC2 instance

Launch an EC2 instance of type Amazon Linux AMI from your aws console. SSH into your ec2 instance ssh -i ec2-user@my_ec2_ip_address Update the instance sudo yum update -y install developer tools sudo yum groupinstall -y “Development Tools” install git sudo yum install git checkout the source code git clone https://my.git.repo.git cd my_local_git_folder git checkout -f […]

Read more
Installing node.js on amazon EC2 instance

Launch an EC2 instance of type Amazon Linux AMI from your aws console. SSH into your ec2 instance ssh -i ec2-user@my_ec2_ip_address Update the instance sudo yum update -y #install developer tools sudo yum groupinstall -y “Development Tools” Install the node using nvm as it allows you to switch between any version of the node ???? curl -o- […]

Read more
Monitoring Memory Utilisation of aws EC2 instance in CloudWatch

Connect to your EC2 instance using ssh. ssh -i ec2-user@my_ec2_ip_address Install following perl packages sudo yum install -y perl-Switch perl-DateTime perl-Sys-Syslog perl-LWP-Protocol-https Download the monitoring scripts curl http://aws-cloudwatch.s3.amazonaws.com/downloads/CloudWatchMonitoringScripts-1.2.1.zip -O Install the monitoring scripts unzip CloudWatchMonitoringScripts-1.2.1.zip rm CloudWatchMonitoringScripts-1.2.1.zip cd aws-scripts-mon run the following command to check the memory utilisation. ./mon-get-instance-stats.pl –recent-hours=12 In order to push this […]

Read more
AWS S3 permissions

A quick tip on aws S3 permissions to a specific folder in a bucket. { “Version”: “2012-10-17”, “Statement”: [{ “Effect”: “Allow”, “Action”: [ “s3:Put*”, “s3:Get*”, “s3:List*” ], “Resource”: [ “arn:aws:s3:::nameofmybucket/profile/*” ] }] } Try to avoid bucket root level permission as much as possible. Also, try to use cognito if the client wants to directly […]

Read more
Setting up redis on aws EC2 instance

Setting up redis on aws EC2 instance Launch an EC2 instance of type Amazon Linux AMI from your aws console. SSH into your ec2 instance ssh -i ec2-user@my_ec2_ip Update the instance sudo yum update -y Install the developer tools to compile the redis source sudo yum groupinstall -y “Development Tools” Install tcl sudo yum install -y […]

Read more
554 5.7.1 : Relay access denied centos postfix

554 5.7.1 : Relay access denied centos postfix   Based on the Postfix documentation, setting mynetworks = all doesn’t appear to be valid, and if you specifically set mynetworks to something, then mynetworks_style is ignored. Reset mynetworks back to its default value if you want to use mynetworks_style=host, or explicitly set mynetworks to reflect where […]

Read more

Hit Counter provided by dental implants orange county