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

Work experience-1-learn from FreeBSD

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

Let's talk about my work experience here. It is purely a running article, long and boring.

From March last year (2013), before graduation, I joined a network equipment company, engaged in routing development, mainly responsible for the development of routing functional modules. My boss (WMM) is responsible for the main development of the company's routing, before I came in, it should be the only routing development, the company's routing system is also developed by him. In terms of routing development, it has also received great help from WMM.

At the beginning, I learned from the FreeBSD system, and ate the FreeBSD user manual http://www.freebsd.org/doc/zh_CN.UTF-8/books/handbook/index.html, but I couldn't use a lot of things in it, so I skipped it when I read it. After reading, in fact, the understanding of FreeBSD (similar UNIX system) is not much, although I have also used Linux before, but I do not know much about Linux, at least not much understanding of the design concept of linux, so in the solution of FreeBSD, it is still confused. It is really appropriate to say that I have no idea. When I opened the manual and looked at the list, I was really frightened. When do you want to see such a long catalogue? Later, when I was eating the manual, I felt dizzy, my head was like a piece of iron, and then my eyes were like a barbell. Fortunately, I can handle this kind of hardship.

To learn a system, I think the first step is to understand what kind of system it is, what it is used to do, and what characteristics it has. So first went to Baidu FreeBSD system, after some access to information, have a certain understanding of FreeBSD this thing, came to a conclusion: FreeBSD is a UNIX-like operating system, the industry's evaluation is "rock solid", and then few people know. At least I haven't heard of it before, and neither have my classmates. It was with this wayward conclusion that I walked into FreeBSD and became a FreeDSB (the name should be understood).

Then it's time to really learn about the system, the next iso of FreeBSD on the mirror site, our product uses FreeBSD8.1, and then FreeBSD8.1 won't be updated soon. It is said that it is not easy to find this mirror image, although it is found, but there are four mirrors, I do not know which one to use, they are four different mirrors of memstick.img,bootonly.iso,disc1.iso,dvd1.iso. After some research, I chose the mirror image of disc1.iso, then borrowed U disk, implicitly opened the FreeDSB mode, imitated the usual process of installing the system, and installed it. But I was really annoyed to find that no matter how I started without recognition, I was really annoyed at that time. Later, I asked WMM to know that I had entered FreeDSB mode. It turns out that the iso of FreeBSD's iso does not need to make a U disk boot image! This is just scared, how linux those are OK, but why these are not allowed? That's when I had some complaints about FreeBSD. But forget it, just find it, and then continue to install it.

After entering the normal installation process, it is like entering another state of egg pain. Sometimes I choose some options according to the manual, sometimes I choose according to the hardware, and sometimes I want to install it according to my own wishes, so I have to install it for almost seven or eight times before I actually install a FreeBSD system. This is my first step, ^ _ ^! But happiness is only for such an instant, when you start it, you will find that there is no graphical interface, it all depends on the terminal, Tunable T. At that time, I was holding a keyboard in my hand, next to a U industrial computer of the company, facing the monitor and watching the white characters on the black background keep scrolling. I thought it was too thrilling. But when I think about it, I'm a little excited. Other people think you're stupid. In fact, I just tease myself, that is, I keep knocking on ls,cd,ls,cd.

Then we move on to the next step, which is some basic configuration. When it comes to configuration, that's the problem. The Internet is the most painful. First of all, you need to know that your current system cannot access the Internet. As soon as this problem is found, I am flustered and cannot surf the Internet, so what should I do? Fortunately, I also have a laptop that can surf the Internet. For me, who knows nothing, the slightest problem is as thrilling as riding a roller coaster. Since you can't access the Internet, you need to know how to match IP, and then go online to find out how to match IP. Equipped with IP, and then you find that the ping can not be 114.114.114.114 these IP, and then know that the original routing. Equipped with the route, and then all IP ping, and then found that ping is not www.baidu.com, and then found that to match dns, and then to find where to match dns, and then found the / etc/resolv.conf file, this file is too important, because the current contact with the UNIX branch of the system is to use it with DNS. Equipped with the network, and then happy. Then as soon as I rebooted, I looked back and found that I couldn't get on the Internet again. Then we know that the configuration just disappeared after reboot, so we need to find a way to make the system boot with IP and so on. Then you know to write some configurations in / etc/rc.conf. The configuration of the whole network is really troublesome, that's what I thought at that time, but when I think about it now, it's actually very normal, and none of the steps can be simplified. Some other configurations have been done later, such as ftp, ssh, dhcp and so on. In fact, at this point, you can find that everything is writing documents.

Later, we have to install the software. Before using linux, we have already installed the software, which can be compiled and installed from the source code, can be installed directly under binary files, and can be installed with some tools such as apt-get, yum, etc. But at that time, they all went to the official website of the software to install the source code, because I felt that the things on the official website were more reliable. And FreeBSD uses ports to install the software, which gives me the feeling of flying. Find the software you want to install, enter the directory, and make,make install will take care of everything. Later, WMM told me that no matter what software I want to install, I should use ports to install, because only the software in ports is tested, the software is relatively safe, and it is compatible with FreeBSD, and it runs stably, so don't go to the official website of the software. If you can't find the corresponding software in ports, you can go to FreeBSD's official website to find it. If you find it, you can download it and install it. Then you can understand why FreeBSD is so stable. If you compare linux, you will find that linux installation software does not have such a specification, and the source only provides convenience. Many people still download the software to install it. On the other hand, FreeBSD's provision of ports means that a dedicated organization is needed to maintain it, thanks to all the contributors to FreeBSD, who are also thanked here. Compared with the contributors to linux,linux, there is relatively no unified organization, and there are many, so the uncertainty of the developed software is relatively large, such as security, stability, design concept and so on. Of course, the openness of linux allows everyone to contribute to linux, making linux the most widely used branch of the unix branch, which is very commendable.

After that, in the process of learning and using FreeBSD, I deeply understood some contents of FreeBSD and gradually understood some design concepts of FreeBSD. I recognized and liked this system more and more. Speaking of ideas, the two things I remember are ideas.

1. KISS . Keep It Simple Stupid .

2. Everything Is A File.

These two ideas really run through the FreeBSD system.

Personally, the FreeBSD system is simpler than any linux system I have ever used. One of the big reasons is the command line. FreeBSD has a special organization to maintain everything, so even the use of command submission follows a design style (it should be said that the use of most programs is the same), so basically after using several commands, and then using other commands, you can basically guess the usage of commands without looking at the manual. The commands on linux are often pleasantly surprised, feeling that the usage is very strange, or that the parameters and options are for users to use more conveniently, but it is precisely this convenience that makes it more difficult for users to apply, because the usage of each command is designed according to its own function, so there is a big difference between the usage of the command. For example, the option-a, in FreeBSD, means all, and the-an of most commands lists all the content to be rendered. In linux, the use of this option is varied and varied. In addition, the concept of Everything Is A File has also made a great contribution to KISS. FreeBSD, should be said to be a unix system, many objects are designed in the form of files, and the system calls provided to users are also very similar to file operations, such as files, memory, devices, networks, processes and so on. And linux also inherits unix in this respect, so there is not much difference.

Generally speaking, I agree with FreeBSD system or UNIX system. Indeed, as an industrial operating system, its stability and security are very excellent. But I am no longer engaged in network work, now all the platforms for work are centos, and the contact with FreeBSD has become less. But I hope to have more contact with FreeBSD in the future.

It is said that I have never used the graphical interface of FreeBSD. I don't know what it is. Anyway, I once wanted to pretend, but failed. At that time, the level was too low, but now it is generally low.

Just the sauce.

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