Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use cloudControl or dotcloud free cloud space to build a station

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article focuses on "how to use cloudControl or dotcloud free cloud space to build a station", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to use cloudControl or dotcloud free cloud space to build a station.

Dotcloud may be familiar to everyone, because the very popular Docker (container) comes from the founder of dotcloud, but Docker later sold the dotcloud business directly to cloudControl, focusing on the development of Docker technology applications. After cloudControl has dotcloud, it also upgrades the PaaS service and adopts GCE service.

CloudControl and dotcloud have different domain names and different accounts. If you want to use their space, you have to register users on two different sites. However, the website and space structure are exactly the same. The methods of installing PHP, MysqL and other components and binding custom domain names are the same. What the tribe feels most about is that the space speed of dotcloud is better than that of cloudControl.

CloudControl uses Amazon AWS European server, the domestic access speed is very slow, while dotcloud uses Google Google Compute Engine, the domestic access speed is better than Amazon AWS. Of course, since both cloudControl and dotcloud support binding domain names, we can use the free CDN method to solve the problem of slow spatial access.

1. CloudControl and dotcloud space applications

1. The official website of Space:

CloudControl: https://www.cloudcontrol.com

Dotcloud: https://www.dotcloud.com

2. Go to the official website, click Register, enter your email and password, and submit. Some areas may not be able to open the official website, please bring your own tools.

3. After logging in, you can start to create applications that support Java, PHP, Node.js, Python, Ruby and so on.

4. After the creation is complete, you can see the list of applications.

2. Create instances with cloudControl and dotcloud

1. CloudControl and dotcloud need to use Git to create and publish instances. If your computer does not have Git installed, you can go to Git for Windows to download it. Then install the cctrl command tool, which is the download address of the cctrl command tool.

2. Enter cctrluser-h to view the usage of cctrl. The details are as follows:

Commands:

Available commands

Create New user

Setup Settin

Activate activation

Delete deletion

Key lists Public Key

Key.add add public key

Key.remove Delete public key

Logout exit

Addon.register add component

Commands:

Available commands

Run runs the command tool

Rollback rollback

Create creates an application

Details details

Delete deletion

Push pushes local updates

Deploy publishes applications

Undeploy delete application

User lists users

User.add add user

User.remove Delete user

Config profile

Config.add add configuration

Config.remove deletion

Addon View component

Addon.list lists available components

Addon.add add component

Addon.upgrade upgrade

Addon.downgrade downgrade

Addon.remove deletion

Alias lists domain names

Alias.add add domain name

Alias.remove deletes a domain name

Worker lists processes

Worker.add add process

Worker.remove stops the process

Worker.restart restart

3, run the cctrl command: cctrluser key.add will automatically generate Public Key locally, and then fill in your mailbox and password, you can upload to the cloudControl space.

4. Execute the following command to download a PHP application example code provided by cloudControl using Git. Of course, if you have your own code, you can upload it directly:

The code is as follows:

Git clone https://github.com/cloudControl/php-silex-example-app.git mfreehao123

Cd mfreehao123

# or you can upload code in the following ways

Cd PATH_TO_YOUR_CODE

# If you don't already have a local repository initialize Git

Git init.

Git add.

Git commit-am "Initial commit"

5. This is the content of the PHP application example code directory provided by cloudControl.

6. Execute the following command to submit the local code to cloudControl, and publish the application.

The code is as follows:

Cctrlapp mfreehao123/default push

Cctrlapp mfreehao123/default deploy

7. After the application is released, you can go to cloudControl and start to manage the space. You can see that the VCPU of the free space is 1 core and 128MB memory. (click to enlarge)

8. The instance created in dotcloud space is the same as above, except that you also need to install the dotcloudng command tool, and then execute the command:

The code is as follows:

Git clone https://github.com/cloudControl/php-silex-example-app.git mydot

Cd mydot

Dcuser key.add

Dcapp mydot/default push

9. The management interface of dotcloud is basically the same.

Third, cloudControl and dotcloud bind domain names

1. CloudControl and dotcloud support binding your own domain name. Go to the application management page, and click Settings to see the domain name TXT value. You need to copy it to your domain name DNS management office, add it and verify it.

2. Then add and bind your own domain name to cloudControl and dotcloud.

3. After submission, you will have to wait more than 15 minutes before you can use the custom domain name to access it.

4. The custom domain name can be recorded by CNAME. The record value is the second-level domain name generated by cloudControl and dotcloud.

4. CloudControl and dotcloud install MysqL and other application components

1. CloudControl and dotcloud provide the application component center, providing very rich Web components for you to choose from. In terms of database, there are ElephantSQL, MemCachier, MongoLab, MySQLd, MySQLs, OpenRedis, PostgreSQLd.

2. Other components include: Alias (bound domain name), Custom Config (custom configuration), Cron Jobs (scheduled task), PhraseApp, QuotaGuard, HTTPS and so on.

3. The way to add components to your cloudControl and dotcloud is simple. Take MysqL as an example, execute the command:

The code is as follows:

Cctrlapp mfreehao123/default addon.add mysqls.free

Cctrlapp mfreehao123/default addon mysqls.free

4. The latter sentence can view your MysqL database connection information, including account number, password, database connection address and so on.

5. The added application components can be seen at the bottom of the cloudControl and dotcloud management panel pages.

6. The free MysqL quota for cloudControl and dotcloud is relatively small, which leads to 5MB. The instructions are as follows:

At this point, I believe you have a deeper understanding of "how to use cloudControl or dotcloud free cloud space to build a station". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report