Mounting a Cloud Storage Buckets as a File System on CentOS 7 Compute Engine Instances

Problem:

I need to mount a Google Cloud Storage Buckets to file system, and grant access to the web server.

 

Solution:

Use the Google Cloud Storage FUSE (gcsfuse) tool to mount a Cloud Storage bucket to your Compute Engine instance.

 

Steps:

Assumption:

  • I have a bucket named yctin-bucket
  • I want to mount this bucket to /cloud/yctin-bucket/
  • I was generated the Google Service Key, and stored into /src/gcloud_service_account.json

 

Mounting a bucket

 

To unmount the bucket

 

References:

 

Install & Setup Google Cloud SDK (gcloud command) on RHEL / CentOS 7

Problem:

bash: gcloud: command not found

 

Solution:

Install & Setup Google Cloud SDK

 

Steps:

1. Installing SDK

Reference: https://cloud.google.com/sdk/downloads

 

2. Initializing Cloud SDK

Reference: https://cloud.google.com/sdk/docs/initializing

 

3. Authorizing Cloud SDK Tools

Reference: https://cloud.google.com/sdk/docs/authorizing

 

 

 

 

How to Install MySQL 5.7 on RHEL/CentOS 7

 

 

 

 

 

 

 

 

 

Convert .cer to .crt certificates for Apache/mod_ssl using OpenSSL

Assume you have a CER is an DER encoded X.509 certificate in binary form, and you want to have a PEM-encoded X.509 Certificate file for Apache.

The following command may help:

 

Apache/mod_ssl request PEM-encoded X.509 Certificate file

Reference: http://www.modssl.org/docs/2.8/ssl_reference.html#ToC10