markdown Google Cloud基础知识

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown Google Cloud基础知识相关的知识,希望对你有一定的参考价值。

## Creating a web server
1. Within Google Cloud Platform, open the left menu and select **Compute Engine > VM instances**
2. Select **Create instance** from the top menu
3. Create the server depending on what specification you need and check the boxes to **Allow HTTP/HTTPS traffic** so that it can be viewed in a browser, then select **Save** when done.
4. (optional) SSH into the server and install the LAMP/LEMP stack depending on your requirements.

## Creating a database server
1. Within Google Cloud Platform, open the left menu and select **SQL**
2. Select **Create instance** from the top menu
3. Select **MySQL** (unless you have a need to use PostgreSQL)
4. Give your instance a name and be sure to record the Root password, then when done, select **Create**

## Accessing MySQL from your VM instance
1. Firstly you need to install MySQL client on your VM. To do this, SSH into the server and run the following:
```
sudo apt-get update
sudo apt-get install mysql-client
```
2. Next you need to allow the SQL instance to be accessible to your VM instance. Open the left menu again and select *SQL*
3. Select your instance then select the *Connections* tab
4. Under **Connectivity**, add a new network under **Authorized networks** and enter the IP address of your VM instance
5. Now SSH into your VM instance and try to log into MySQL using something like (entering Root password when prompted):
```
mysql -h[IP ADDRESS OF SQL INSTANCE] -uroot -p
```

以上是关于markdown Google Cloud基础知识的主要内容,如果未能解决你的问题,请参考以下文章

markdown Google文档知识

在 Google App Engine Cloud 基础架构上实现 Stack Exchange API 兼容请求限制

借力 Google Cloud 基础设施和着陆区,构建企业级云原生卓越运营能力

借力 Google Cloud 基础设施和着陆区,构建企业级云原生卓越运营能力

Google Cloud服务免费申请试用以及使用教程

markdown s cloud cloud cloud cloud cloud cloud cloud