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

Tips for using Linux: do you know how to use it or not? [figure]

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

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

Tips for using Linux: do you know how to use it or not? [figure]

Recently, a project is nearing completion and is about to enter the debugging and testing phase. This is a Mini Program project built using the Springboot framework for the daemon, mpvue. Server I finally chose version 7.2 of CentOS in the Linux operating system.

Why choose Linux?

I can't comment on the pros and cons of Linux and Windows, and they each play an indispensable role in different fields.

The final reason for choosing Linux is that I compared the fluency of operating remote servers under the same configuration. Although Win can use simple mouse clicks to complete the configuration of the environment, start the project and other operations, but because this is a development and test server, the performance configuration is slightly lower, resulting in a remote Win desktop when the operation is not so smooth, decisively switched the Linux operating system.

The annoyance of using Linux:

The first time I came into contact with the Linux operating system was in a college course, using the Ubuntu distribution, but I have forgotten which version, according to the time estimate, it should be the 12.x version. Fuzzy memory is to learn a little bit of shell programming, boring learning so that people can not adhere to ah, but some students are very committed to it, every time they see them in the only character window to type different commands to achieve different operations are very envious.

Because the Win system has been used in learning and entertainment, so I am not so concerned about Linux. But later work, only using Win, some work is really not satisfied, because many projects are running in the Linux environment, so have the experience of mending Linux, from messing with different distribution systems in the virtual machine, to boldly try to install their laptop into a dual system, stepped through countless holes, and finally one foot into the door of Linux, simple and commonly used commands can also be readily available Being able to basically understand how to run a script, and thanks to the omnipotent Google and Baidu that I have to use, I have learned from countless people's experience and solved seemingly magical problems.

Later, a "magic" project of the company was handed over to me, which was developed in the Java language, although as an Android engineer, the foundation of Java is also possible, and I have written JavaWeb projects before doing Android, so I have no choice but to take over this amazing project.

Five CentOS servers (like built virtual machines provided by customers), one Oracle database server, one image server, two Web servers, and one that doesn't seem to be used or forgotten what it's for, using Nginx to distribute requests to two tomcat servers, which is a huge challenge for a Linux rookie who is only half-footed. After staying up late for more than two months, I finally "perfectly" completed the development of this project, and then handed it over to other project teams, who had a headache for this simple and complex project, and saved a lot of detours from me.

It is precisely because of the exercise of this project, the other foot has gradually entered the threshold.

Does the programmer have to Linux:

When I finished setting up the server environment of the current project (that is, configuring JDK), and then successfully packaged and ran the project, I gave the server to the buddy in our project team who was responsible for writing Mini Program API. Maybe it was due to inexperience. He was very nervous, and he, who had hardly used Linux programs, was very nervous. Of course, I ran the process of publishing and running for him:

Packaging project, Maven project packaging a jar is still very simple

Remote login server, the use of ssh command.

Transfer jar to the server, using the scp command, I feel that this command is better than ftp to transfer packaged files.

Different ways to run jar files, one is to run directly, you can see the input of the log log, in the debugging phase is still very useful, you can quickly locate error messages. The Little Prince's Classic quotation (http://www.simayi.net/dushubiji/6046.html) excerpts and appreciation of reading notes, but the disadvantage is that the project stops running after exiting the remote login; the other is running in the background, outputting log to a file, and still running after exiting the remote login.

Such a simple order should not be difficult to use, depending on his personal comprehension.

Linux to put it bluntly is a tool, and is a very powerful tool, learn to use Linux, but also learn a lot of other knowledge, on the operating system, the operation of the project, the management of files, permissions have a deeper understanding, rather than in the use of win, simple little operations can reflect the content.

The speed of computer development is so fast that it is hard to imagine that more and more people choose the programmer industry. Since a person could develop and maintain a project more than a decade ago, at this stage, the complexity of a project may not be completed with a single programming language knowledge at all, so learning more knowledge is now the only way for programmers to stand out, not just the use of Linux.

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

Network Security

Wechat

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

12
Report