Posts

Digital Marketing

lsof output numeric ports

According to man lsof, -P inhibits the conversion of port numbers to port names for network files. [ec2-user@ip-172-16-7-193 ~]$ sudo lsof -i | grep java java       4031 ec2-user   43u  IPv6  25444      0t0  TCP *:webcache (LISTEN) java       4031 ec2-user  351u  IPv6  30785      0t0  TCP localhost:mxi (LISTEN) [ec2-user@ip-172-16-7-193 ~]$ sudo lsof -i -P| grep java java       4031 ec2-user   43u  IPv6  25444      0t0  TCP *:8080 (LISTEN) java       4031 ec2-user  351u  IPv6  30785      0t0  TCP localhost:8005 (LISTEN)

Install Firefox on EC2 by command line

firefox is available in Amazon Linux Extra topic "firefox" To use, run # sudo amazon-linux-extras install firefox Learn more at https://aws.amazon.com/amazon-linux-2/faqs/#Amazon_Linux_Extras

Install Google Chrome on Linux using yum command

sudo yum -y install https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm

Set up Linux DNS suffix search list

sudo vim /etc/resolv.conf search ca-central-1.compute.internal search goyun.info nameserver 172.16.0.2 options timeout:2 attempts:5

How To Use Aws S3 Cp Wildcards To Copy Files In AWS CLI

If you don't use exclude and/or include, you might encounter:  Unknown options error. The following works: aws s3 cp . s3://your-s3-bucket --recursive --exclude "*" --include "*.rpm"

How to Solve Postfix Error Message fatal: unable to use my own hostname

sudo hostname localhost.goyun.info sudo systemctl restart postfix

MyDumper is a MySQL Logical Backup Tool

MyDumper has 2 tools: mydumper which is responsible to export a consistent backup of MySQL databases myloader reads the backup from mydumper, connects the to destination database and imports the backup. Both tools use multithreading capabilities. MyDumper is Open Source and maintained by the community, it is not a Percona, MariaDB or MySQL product. https://github.com/mydumper/mydumper