Adding SSL to Apache on EC2 with Amazon Linux

Adding SSL to Apache on EC2 with Amazon Linux   These notes assume you have Apache installed and working on EC2 with Amazon Linux, but it’s fairly similar for other versions of Linux. Install OpenSSL and the Apache Connector // for Apache 2.2 yum install openssl mod_ssl // for Apache 2.4 yum install openssl mod24_ssl […]

Read more
How to Improve rsync Performance

I need to transfer 10TB of data from one machine to another machine. Those 10TB of files are living in a large RAID which span across 7 different disks. The target machine has another large RAID which span across 12 different disks. It is not easy to copying those files locally. Therefore, I decide to […]

Read more
rsync

There are many commands to copy a directory in Linux. The difference between them in current Linux distribution are very small. All of them support link, time, ownership and sparse. I tested them to copy a Linux kernel source tree. Each command I tested twice and keep the lower result. The original directory size is […]

Read more
Migrating to Amazon Linux 2

AWS also announced that Amazon Linux 2018.03 is the last release for the current generation of Amazon Linux and will be supported until June 30, 2020. Therefore, you have to come up with a migration plan. Amazon Linux 2 comes with the same benefits as Amazon Linux, but it adds some new capabilities: long-term support: […]

Read more
mysql dump issue utf8_unicode_520_ci

i use this in linux : sed -i ‘s/utf8mb4/utf8/g’ your_file.sql sed -i ‘s/utf8_unicode_ci/utf8_general_ci/g’ your_file.sql sed -i ‘s/utf8_unicode_520_ci/utf8_general_ci/g’ your_file.sql then restore your_file.sql mysql -uyourdbuser -pyourdbpasswd yourdb < your_file.sql

Read more
Install LDAP-slapd.conf mode

Install LDAP-slapd.conf mode ——————start installation——————— Query whether to install # rpm -qa openldap-servers Remove ldap # yum remove openldap # yum remove openldap-servers Installation Environment Centos7 Apache/2.4.6 (CentOS) PHP 7.1.11 Install LDAP Server Openldap-servers-2.4.44-5.el7.x86_64 # yum install openldap-servers openldap-clients migrationtools # rpm -qa | grep openldap Delete all files in the slapd.d folder and copy […]

Read more
How to reset your root MySQL password

Stop the MySQL process # service mysqld stop Once MySQL has stopped, restart it with the –skip-grant-tables option # mysqld_safe –skip-grant-tables & or edit your /etc/my.cnf file to add the line skip-grant-tables Connect to MySQL using the root user. mysql -u root Once logged in, you should see the following prompt: mysql> Enter the following […]

Read more
Reset SonarQube Admin User Password

Reset SonarQube Admin User Password by default sonar creates admin account : user: admin, password : admin Start root access to mysql database mysql -uroot -p Copy Bash Check if sonar database exists. show databases; Copy SQL use sonar; Copy SQL Reset admin user to admin password. update users set crypted_password = ’88c991e39bb88b94178123a849606905ebf440f5′, salt=’6522f3c5007ae910ad690bb1bdbf264a34884c6d’ where […]

Read more
git cmd

git pull # will get you repo updates git add . # will add files in your dir git add [dirname]/* # will add files under a new dir git commit -m “your comment“ # will commit your code to your changes git push # will push your code to a reposatory git pull # […]

Read more

Hit Counter provided by dental implants orange county