7
头图

Author: Xiao Fu Ge
Blog: https://bugstack.cn

Precipitate, share, and grow, so that you and others can gain something! 😄

I. Introduction

gives you a server, can you deploy the code you write online?

We often hear such a sentence: "In order to make R&D only care about business development, we did so-and-so!" What did we do, so that you don’t care about it, system construction, technical framework, core components, common modules and online applications are just a little bit. I don’t know how an application server is, deployment environment, open port, domain name application, SSL configuration. Therefore, most of you are becoming more and more like a tool person in a single position in the workshop. If you want to go to a higher position in the company or want to do something out of the company, it will become your bottleneck!

A complete set of capabilities, what aspects should be covered?

  • When we start with a demand from undertaking to launching, the roles that we will probably experience in this process include: business, operations, products, data, research and development (UI), testing and operation and maintenance, product use data and models, and quantified business proposals Needs, how to iteratively achieve, to meet the operational use to complete the business goals, and then the UI, front-end and back-end R&D, testing to complete the development and verification of the project, and deploy to the online environment of the operation and maintenance configuration.
  • From the perspective of this set of processes in the role of programmers, in fact, a large part of R&D personnel can only interact within the scope of programming and development. The closest technical role is testing and online deployment, but if you let R&D yourself To deploy a test environment, it will be very difficult to build an online environment, not to say how difficult it is at the technical level, but that this thing has hardly been experienced, and I have never thought of trying it out.
  • Models, algorithms, and quantification in business, operations, products, and data. Perhaps the R&D personnel in this part are farther away. It is not clear at all because of what scenario, what purpose was proposed, what evaluation was made, what methods were proposed, and How to land, and what you can see in R&D may only be the PRD waiting to be executed. It is because it is always like this, so there is the sentence: "You may not be able to do anything when you leave the company!"

Next , tell my friends that my tossing about what I love is not only the broadening of the scope of technology, but it may also give you some unexpected gains!

2. Money spent on the server!

You can spend some money on this kind of thing, spend some, even if you want it, not much!

Master Tang said, spend some money, I listened to it!

In fact, I have never been stingy with the consumption of technical learning, and I will not waste time on other part-time tasks that are not personal for long-term growth. Since I graduated in 13 years and started working, because there is little money, some of my co-leasing partners will go out to find some part-time money to make money. I belong to the kind that not only did not make money on weekends, but also bought the domain name and server for the extra money saved. , From the earliest host house to Baidu, there is BCH cloud service. I have also seen that Qiniu Cloud has also used Baidu cloud storage, and it has spent tens of thousands of dollars on the server all the way.

What did you buy with all this money? I bought a bunch of domain names alone, including: itstack.org, yuyueqianli.com, fuzhengwe.cn, linuxjar.org, iteuds.cn, bugstack.cn etc. What about the server? In addition to the normal consumption of the server, you also buy a lifetime one! ! !

Although spent a lot of money, it is precisely because of these consumption and constant that I learned 160c17934685ba domain name registration, domain name registration, domain name configuration (A record, CNAME record, TXT), certificate application , service building, pagoda application, configuration environment, Linux commands, etc. When you have a specific thing to do, you will use this path as a guide, constantly search for the corresponding information and practice !

, the first forum that can be seen in the past, with a little traffic!

  • But later, due to some rogue attacks and the impact of org domain name registration, this small forum finally hung on the road.
  • Fortunately, the website did not die . I learned a lot from it, including: deployment, launch, operation and maintenance, some traffic peaks found in the operation and maintenance process, cache processing, anti-brush processing, anti-leech processing, users Register and associate with QQ, modify the original php code, support some functions and so on. What is hanging is only the website, but what is left is the technical experience!

3. Earn back the money spent!

How did I make this money back?

After I built forums, blogs, and post-bar-like functions, and gradually got a little bit, people started to contact me if I could build such a website or corporate portal for them. I happened to be in a traditional industry at the time, and I had a lot of spare time. I could get off work at 5:30 every day. Of course I had time to do it. it is good! Just do what you say. Under one meal, I have received a lot of private work in 2 years and made tens of thousands of dollars. Even if I have earned back the money from the server and domain name, it is not in vain!

1. Enterprise portal website (5000 yuan)

企业门户网站(5000元)

  • Index : ⭐⭐⭐⭐
  • Background : Just about a year after I went to work, my high school classmates asked me if learning computer can help their company build a website, just imitate the style of Lao Luo's hammer company, 5,000 yuan.
  • result who is not afraid of tigers, people need to write it in PHP! I learned Java and wrote C# for almost a year, and then I used PHP to build an enterprise portal website for someone else. I should say that I was very courageous!
  • harvest : The project was successfully deployed and the 5,000 yuan was paid as scheduled. I bought my first Apple mobile phone, iPhone 4s, and it is still by my side.

我第一个苹果手机 iPhone 4s

2. Selling furniture promotion website (2000 yuan)

卖家具宣传网站(2000元)

  • Index : ⭐⭐⭐
  • Background : At the beginning of 2014, my relatives opened a small workshop for making aquariums, and learned that I learned to calculate. The gongs and drums came up to me and said that it is too expensive to do .
  • result : 💰I am too embarrassed to ask for the money, just ask for the server and domain name fees, but then gave me a big red envelope of 2,000 yuan, hey, shake your hand and accept it!
  • Harvest : Thanks to the fact that I have already taken over a project, PHP is also very easy to develop. According to the style they liked at the time, they made a style website layout that imitated the dot.com. I paid the rent for the money I made this time!

3. Netty communication framework (2000 yuan)

Netty通信框架(2000元)

  • Index : ⭐⭐⭐
  • Background : About 14 years ago, I started to like to engage in Netty. It may also be that there was not much information on the Internet at that time, and many people found me because I wrote a complete set of Netty cases. Just once asked if I could write a Netty communication framework, 2000 yuan.
  • result : This was also the first time I did not use PHP, but made money in Java language. For me, it's pretty simple. I finished writing once I got home from get off work at 5:30, and it was over the next day.
  • Gain : Knowledge can really be turned into money, especially when it is a little bit difficult and there are not many people involved.

4. Lectures, data collection (11,000 yuan)

In addition to the private work I received above, I also received a lot of small jobs.

  • Undergraduate design guidance, 1,000 yuan. From Zhubajie.com.
  • Encryption algorithm for graduate students, 2000 yuan. A graduate student partner designed it with me and gave me the application fee from their college.
  • Lecture to a student online, it seems that it costs 50 yuan a day, and it will be 1,000 yuan for one month in the future.
  • A comprehensive logistics data platform, in fact, does not have many functions, a bit like recording foreign trade orders, 5000 yuan.
  • Assisting a boss who took up the project by himself, wrote part of the Netty codec code for a week, and docked it with the lower computer. 2000 dollars.

In this way, in those two years, seven or eighty-eight people made more than 20,000 yuan. Of course, there is still a small income, less than 1,000. Some people have been deceived. For example, they won’t give money after they got the project, or they got a screenshot of " I didn’t add watermark ". People can demonstrate enough, but they don’t give money anymore.

4. How to use a server?

Next, teach you how to use a server!

For a school at school, it may have been working, but has never understood or contacted the configuration of the server and how to run its own code on the server. Then you can refer to the following tutorial introduction and try to deploy your own code to the server according to such an introductory guide.

There may be many friends who don’t know what the server can do. Simply put, this is a virtual computer that is not at home, and it runs 24 hours a day without downtime. You can practice network programming on it. Network IP), transit server, and the following:

  1. Take a blog: https://mp.weixin.qq.com/s/ZoQ0xAphJQkP_pb8H08BMg
  2. Engage in forums: phpwind, Discuz, wordpress (with blog and forum templates)
  3. Get the network disk: https://mp.weixin.qq.com/s/gzUrFexHcyCrw7XZ_L7N7w
  4. Chat room: https://mp.weixin.qq.com/s/OmXCY4fTfDpkvjlg5ME0ZA
  5. Others: practice your own project, set up a cluster, play with ES, get actual combat, save private work for others to deploy demonstrations

And the exercises of these contents can let you play through the whole set of contents from R&D to operation and maintenance, and thoroughly understand the domain name, filing, ssl, pagoda, common Linux commands and so on.

1. First neng servers

First of all, whether you have a server or not, you can learn about the use of the server with Brother Xiao Fu. We have built a group to learn about the server, add my WeChat: fustack, remark: server to learn to add a group.

If you are still a new user, Xiaobai, then you can follow my process, first neng a cheap server, just learn to use it. Here, Brother Xiaofu organized an event for the newcomers. You can buy a server with a one-year validity for 79 yuan, which is still much cheaper than the one I bought before!

  • When you buy a server, you will see that in the region, instance, operating system, etc., the network speeds in Beijing, Shanghai, and Hangzhou are better, and Zhangjiakou is cheaper but the network speed will be slower. The operating system defaults and can be replaced after shutdown.

2. Server Introduction

After purchasing the server, wait a few minutes for the cloud platform to initialize the service, and you can use the configuration directly after you finish. as follows:

  • Reset password: Click on your instance, the blue letter, after entering, there is one on the right, reset instance password, operation.
  • Remote link: Click the remote link to link to your service. It is an online operation. You can link to the service through the local software xshell.
  • System replacement: If you are not very satisfied with the system you have selected by default or have other requirements, you can click to stop the system, and then start the operating system replacement.

3. The system is replaced with a mirror image of the pagoda

For the server system, you can use Linux commands to install various service components, such as k8s, docker, jdk, tomcat, mysql or php, etc., but for the actual operation and maintenance, we hope that the operation and maintenance cost will be more The lower the better, so here we choose pagoda , such a server operation and maintenance panel to manage our servers.

Pagodas can be installed on various cloud platforms, including Baidu Cloud, Huawei Cloud, Alibaba Cloud, and Tencent Cloud. Some cloud platforms will also have their own prepared pagoda mirrors. Here we use Alibaba Cloud services. For example, it is better to shut down the system as a pagoda.

shutdown

  • Location: Click on the instance of the cloud service to enter this page
  • Operation: Before replacing the system, we need to stop the operation first, after the shutdown, you can click to replace the operating system

change system

choose mirror

  • After replacing the system to confirm the order, then it will jump to the management background, then wait for a while, the server will start.

4. Configure and log in to the pagoda

remote login

  • In this step, we log in directly on the web page, you can also use xshell to log in to the public IP

Initialize the pagoda

Command: [root@CodeGuide ~]# bt default

Configure security group

  • The access to the pagoda must be configured with port 8888, otherwise it cannot be accessed. This can be opened in the security group of the server.
  • Here we directly turn on all of them for convenience. If you are actually using it, you can't do this, otherwise it is very unsafe!

login pagoda

  • Address: http://39.96.73.xxx:8888/ - into your address
  • Account: The user name and password have been printed on the console, you can copy your own, and you can modify the default password after logging in to the pagoda

5. Install Apache and FTP

Next, we install an Apache server and FTP in the pagoda, so that we can deploy and access our static blog, which is a html, as follows:

Install Apache

  • Some commands will be executed automatically during the installation process. You don't need to worry about this, just watch it silently.

install FTP

  • The main purpose of installing FTP is to transfer files to the server locally. For example, if one of your static blogs is html, it can be transferred to the server via FTP.

6. Website configuration

After installing Apache and FTP, we can simply configure a site, and with this site, we can visit our own blog!

Create site

  • If you have not applied for a domain name, or the domain name has not been registered, you can directly fill in the public IP.

visit site

7. Website content

  • In the files of the pagoda, you can select the site added in step 6, find your file in it, and make some modifications. When you visit the website at this time, you will find that the content is your new content.

8. Domain name configuration

If you have a domain name and have already filed it, you can configure the domain name directly when you create the site, and you can access it through the domain name when you visit your website.

  • Add a domain name: The domain name configured by Brother Xiaofu is the domain name that has been applied for and filed, and you can configure it as yours. Remember to configure the domain name, you need to configure the server IP mapping through the A record in your domain name service.
  • FTP configuration: In order to upload your files more conveniently, you can turn on FTP so that you can transfer the configuration via FTP.
  • Access address: http://blog.itedus.cn - Since the domain name is not in Alibaba Cloud, http may be detected as undocumented and denied access

9. SSL configuration

There are many free websites to apply for SSL, or you can apply in the pagoda. If you are using Alibaba Cloud service, you can apply for 20 SSL certificates for free. In addition, if your domain name and service are both in Alibaba Cloud, then apply SSL can go through DNS authentication directly, otherwise you need to manually configure the DNS information to your own domain name. n't worry, there are prompts when applying, follow the instructions to configure

download certificate

Because we need to configure ssl on the pagoda, we need to download SSL here and choose Apache format to download.

configuration certificate

  • After configuration, click Save. In addition, you need to force HTTPS to be turned on, otherwise your website can continue to access http, which is meaningless.
  • Now you can access your blog or website via https, it doesn't look like a lot!

10. Other instructions

Maybe you also want to configure jdk and tomcat, it doesn’t matter, you can install it in the pagoda, or you can install mysql. With these entry content, you can search for some general configuration content for the rest, or search in Alibaba Cloud .

Five, summary

  • This article mainly introduces the knowledge points and content of some technological growth that can expand your knowledge, as well as the introductory learning of some operational knowledge about operation and maintenance of the server. With such a basic operation to lead you in, you can then expand to search for many other content to improve some of the deployments you have to do.
  • In addition, this article does not introduce the registration and filing of domain names. These contents are still very easy. You only need to search for domain names on the cloud platform or search for domain names on Baidu to find a registration entry. Generally, the .cn domain name is relatively cheap, and many other domain names are more expensive to renew. In addition, like .org, it cannot be filed, so don't choose too Gelu domain name.
  • Knowledge like this must be learned by hands-on operation. You may encounter various problems in the process. It doesn't matter, these problems can all be searched.
  • In addition, you can join our server learning group, add my WeChat: fustack , remark server learning, and record some operation videos in the group. There are also many partners who have set up their own blogs to exchange and learn from each other!

Sixth, series recommendation


小傅哥
4.7k 声望28.4k 粉丝

CodeGuide | 程序员编码指南 - 原创文章、案例源码、资料书籍、简历模版等下载。