In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article shows you what are the ten tips for Linux quick startup, which are concise and easy to understand, which will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.
1. Undo redundant services
According to 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 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.
two。 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 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? This is also the way to get linux started quickly. The startup time of these smaller distributions is much faster than the more bloated Fedora (or even Ubuntu). In larger distributions, OpenSuSE claims to allow linux to start quickly, but I haven't tested it myself. Between Fedora and Ubuntu of * *, Ubuntu beats the startup time of Fedora (and is ready to use).
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 non-existent floppy drives, that is, to directly start * hard drives (not CD drives 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 your server doesn't 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. Take advantage of 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.
What are the above ten tips for Linux Quick launch? have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.