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 start linux system quickly

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

Share

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

Editor to share with you how to start the linux system quickly, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

Methods / steps

# 1: undo redundant services depending on the use of the machine, many services are not needed. If Linux were used only as a desktop, sendmail, httpd, and many other services would not be required. If your server (server network resource download) is just a Web server, you can also turn off many services. To do this, go to the administration menu and check the service items. Just undo all the service options you don't want to start.

# 2: undo redundant kernel modules

If your desktop is connected to Ethernet, you don't need to load the wireless kernel module. This is a difficult task and may require recompiling the kernel, which is not an easy task. To do this, you probably need the kernel source code. Next, follow the standard steps of compiling the kernel. The difference is that you have to search the system and remove all unnecessary modules.

The best way to find out which kernel modules are currently installed and running on your system is to install Bootchart. It will not only give you a list of appropriate modules, but also explain what happened during system startup. You can also issue the command: chkconfig-list | grep 3:on to figure out what service is running. Once you know what unwanted modules are loaded, you can remove them during kernel recompilation. As long as it is handled in this way, the compiled kernel will fit your architecture perfectly.

# 3: use a lightweight window manager instead of GNOME or KDE

The reason I insert small footprint window managers is that they greatly reduce the startup time of the graphics (interface). Instead of having to wait for an extra 30 to 60 seconds to start GNOME or KDE, why not wait for 2 to 10 seconds to start Enlightenment or XFCE? They not only save startup time, but also save memory and relieve headaches such as dealing with bloated software (bloatware).

# 4: use text-based login instead of graphical login

Most of my Linux machines start run level 3 instead of run level 5. This runlevel will stop in text login mode, where I log in and issue the startx command to start selecting the desktop. The graphical login mode does two things: the problem of increasing load time and causing headaches is trying to break free from the clumsy X windows.

# 5: use a lightweight distribution

Don't load heavy Fedora, why not try Gentoo, Arch, or Puppy Linux? The startup time of these smaller distributions is much faster than the more bloated Fedora (or even Ubuntu). Among the larger distributions, OpenSuSE claims to be the fastest to start, but I haven't tried it myself yet. Between the latest Fedora and Ubuntu, Ubuntu beats Fedora's startup time (and out of the box).

# 6: use Open BIOS

If you are smart and ready to upgrade the PC firmware, consider migrating to open source BIOS. An additional note that using open firmware allows Linux to actually initialize the hardware when it starts (without relying on BIOS). Most importantly, many open BIOS can be set up to meet the special needs of the machine. If you do not take the road of opening BIOS, you can at least set BIOS not to look for a floppy drive that does not exist, that is, directly start the first hard disk (one of the hard disk HDD storage media) drive (not the CD drive in the first place).

# 7: avoid DHCP

If you work on a home network (or a small business network) where address leases are not a problem, the machine uses a static IP address. This will obviate the need for the machine to go out and access the DHCP server to get the IP address. If you take this approach, make sure that the configuration file / etc/resolve.conf also expresses your DNS server address.

# 8: hot plug can be exempted.

Hot-swappable is a system that allows new devices to be plugged in and used immediately. If you know that your server (server network resource download) does not need this system, delete it. This will reduce startup time. On many systems, hot swapping consumes a lot of startup time. Excluding hot-swappable changes will depend on the distribution you are using. Note: for the most part, udev has replaced hot swapping. But if you're still running an older distribution, it's a good idea.

# 9: if you are really bold, try initng

The initng system acts as a replacement for the sysvinit system and promises to completely reduce the startup time of the UNIX-like operating system. If you want to know about the running initng system, you can try Pingwinek LiveCD.

# 10: use the code that Debian has

If you are using Debian, there is a line to convert your startup script into simple code that runs in parallel. If you check the / etc/init.d/rc script, you will see that there is CONCURRENCY=none on about 24 lines. Change this line to CONCURRENCY=shell, and you are likely to see a reduction in startup time.

The above is all the contents of the article "how to start the linux system quickly". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

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