What can a 1G1C cloud server do?

Time:2019-10-9

Original address

It is believed that many people in the previous Aliyun and Tencent Yun have boarded the car and bought the 1C1G cloud server for the activity price, but found that after buying it back, they have eaten ashes. So, what can a 1G1C1M cloud server do?

Blog

This should be one of the most common uses that many people buy. Frequent blogging can not only record some of your own experience, but also share with the vast number of netizens, which benefits a lot, and maybe some time in the future look back and have new experience.

There are many ways to build a blog. Here are some of the most popular frameworks. (The following rankings are in no order)

Static Edition

Only four frameworks with high popularity and high heat are recommended here. Personal RecommendationhexoAfter all, it is more friendly to bring Chinese documents with you, and there are many themes.

  • Hexo: A Fast, Simple and Efficient Blog Framework

    I used to build it with hexo. It was very simple.

  • Hugo :The world’s fastest framework for building websites

    A framework for building websites, but also widely used to build blog sites.

  • Ghost: The professional publishing platform

    Similar to Hugo, it is also widely used to build blog websites.

  • Jekyll: Jekyll is a simple, extendable, static site generator

    The old frame.

  • VuePress: A static website generator officially recommended by vue.

    Using this framework may require some basic knowledge of vue.

Dynamic Edition

Dynamics requires support from back-end languages such as php/nodejs/java.

  • Solo: A Small and BeautifulJavaBlog system.

    It has been in operation for 8 years and has been mature and stable so far. And bring along a more active solo community, you can directly ask questions in the community when you encounter problems. My blog has also migrated to solo.

    But it’s important to note that this is Java-based.

  • Pipe: a small and beautiful blog platform

    The author is from Solo upstairs. Based on Golang.

  • Typecho

    A very lightweight blog framework, only seven data tables, to achieve the basic functions of the blog. Theme skin, plug-ins are also very rich. Based on the framework of PHP development, it is believed that ordinary developers can get started quickly.

  • wordpress

    Old brand-big brand blog framework. Big, full, heavy. With a large number of themes and plug-ins, it can be transformed into any website at will.

Fantastic Edition

Through some strange means and static pages deployed by themselves, the method of building a blog is realized.

  • TeenyBlog 2.0: Using a friendly, fast-accessing personal static blog solution

    The management of blog posts is realized by using the API of the Language Sparrow, and then the blog system can be realized by configuring an index. HTML and a running cloud function under the server.

  • LonelyLiaR/nameless: A Blog-System based on GitWhat can a 1G1C cloud server do?ub Issues. Simple and Grace.

    A blog system based on React and GitHub issue. Just configure the GitHub configuration under index. HTML to run directly. As for github’s access speed, it varies from person to person.

  • BGAIssueBlog: Vue + VueRouter + Vuex + Axios grabs Issues on GitHub and builds a personal blog site with GitHub Pages to support GitHub login and comments

    Another blog is based on GitHub issue, but the front-end framework uses Vue and its family bucket.

Community

In fact, 1G1C chicken, with Ali, Tencent’s CDN, to build a small community is more than enough.

Operating online communities requires a company license when filing.

So what are the frameworks for communities that can meet general needs?

MIT protocol

  • Egg-Cnode Edition

    Based on the development of eggjs, examples include CNode communities that have been deployed online. The difficulty of secondary development is low.

  • RocBoss

    A concise forum framework, with a lot of forum commonly used functions, such as praise, reward and so on. Based on PHP development. The difficulty of secondary development is low.

  • Flarum

    Similar to discourse, they are both small, fresh and concise forum frameworks. Based on PHP development. But it needs to be localized by itself.

Non-MIT protocol (commercial note)

  • discourse

    A fresh and concise style of forum framework, responsive design. Based on Ruby on rails. GUN GPL Protocol

  • NodeBB

    Compare the old-fashioned forum framework based on nodejs development. GUN GPL Protocol

Other

  • wordpress
  • discuz3.x
  • phpbb

These three items need not be introduced. Free, old-fashioned, museum-level forum frameworks. The main selling points are:Stable, large plug-in library, widely usedThis is the case. Because it is a heavy framework at the museum level, secondary development will be very difficult and can not be treated in a modern mainstream way.

Reptiles

A C1G running crawler is more than enough. If a good framework is used, efficiency can be added.

Reptiles are relatively rare, so Node reptiles are only recommended for several common libraries.

  • eggjs

    Mainly used to achieve the function of timing crawler. The timer runs stably. It is suitable for use as a timer for crawlers.

  • Cheerio

    The DOM operation of class JQ makes it more convenient to get the data of DOM.

  • puppeteer

    Google’s headless browser library can perform js, wait n seconds, screenshots and other functions in the crawler process. Phantomjs are much more powerful and convenient than phantomjs in the past. Phantomjs is ready to enter the museum.

    Ps: The library is easy to be wall-mounted. When recommended, use cnpm or download it manually to the hard disk and specify the running program when the program runs.

Development/Learning/Testing

  • You can learn about Linux on cloud servers.
  • You can test and debug the source code on the server.
  • You can experience the actual project deployment process.
  • and so on…

As long as you are willing to do it, you will certainly not eat ash droplets.


Advertising time:

Didn’t catch up beforeTencent CloudTen yuan car, now can be a wave of cheap.

Didn’t catch up beforeTencent CloudTen yuan car, now can be a wave of cheap.

375/y and 800/3y of 1C1G. CPU is100% utilization

What can a 1G1C cloud server do?

There are alsoAli Yunshuang twelveCars:

What can a 1G1C cloud server do?


Attach a small script for easy installation of nodejs services:

# Replacement of apt source
sudo mv /etc/apt/source.list /etc/apt/source.list.bak
echo 'deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main multiverse restricted universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main multiverse restricted universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-proposed main multiverse restricted universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main multiverse restricted universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main multiverse restricted universe
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main multiverse restricted universe
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main multiverse restricted universe
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-proposed main multiverse restricted universe
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main multiverse restricted universe
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main multiverse restricted universe' >> /etc/apt/source.list
sudo apt-get update

# docker
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun

# nodejs
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs

# redis
sudo apt-get install redis-server

# mongodb
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
sudo apt-get update
sudo apt-get install -y mongodb-org

Recommended Today

Detailed explanation of spring cloud ribbon load balancing Shenkeng that cannot be connected through the server name

First, the problem. Take the Eureka cluster and the client calls the service through the ribbon. The ribbon side reports the following exceptions java.net.UnknownHostException: SERVICE-HI java.lang.IllegalStateException: No instances available for SERVICE-HI java.lang.IllegalStateException: Request URI does not contain a valid hostname: http://SERVICE-HI com.netfix.discovery.shared.taransport.TransportException: Cannot execute request on any known server The spring cloud version is messy, […]