Linux Server Maintenance

  

Linux servers are relatively stable and secure compared to Windwos servers. However, a stable and secure Linux server is still inseparable from reasonable and timely maintenance work. There are a lot of maintenance tips for Linux server systems. Here are a few tips for you. First, let the software package keep the latest version The Linux server package is also upgraded like the patch of the Windwos operating system. The upgrade of Linux server software has two main purposes. One is to enhance the functionality of the software, and the other is to resolve some known security vulnerabilities. If RedHat knows about new security vulnerabilities, it will immediately research and develop the corresponding solution, and then solve it in the new version of the software package. To this end, the system administrator must keep abreast of the latest information about the software package and update the software package in time to keep the software package up to date. So how do system administrators know the latest software versions and security vulnerabilities? Under normal circumstances, RedHat will find the relevant solution in the shortest time after receiving the notification of the security vulnerability, and publish and connect to the latest version of the package download address on this technical support platform. In general, more than 90% of the latest versions of the software under the Linux operating system can be found on the website. So system administrators need to pay attention every day to understand the latest version information and security vulnerability information of the software package. Upgrade the software package in a timely manner if necessary. Second, create a floppy disk boot disk Although the floppy disk is used less and less, but in some large servers, such as IBM's server still has a floppy drive. This is mainly because sometimes complex problems can be solved by floppy drives. For this reason, after deploying the Linux server, it is best to create a floppy disk boot disk, which can be used to save the emergency when it is needed. If the system administrator sometimes encounters some inexplicable problems during the installation process, such as installing many times in the middle, it will not be installed successfully. This is most likely due to a problem with installing the image. At this point the system administrator needs a modified floppy image. Although this situation is relatively rare, it is relatively easy to encounter when deploying a relatively large server. When this happens, the system administrator should not blindly download the installation image or take other time-consuming and laborious actions. You can use the standard installation floppy disk to start the installation. Maybe you can solve the failure during the installation process. It is precisely because the floppy disk boot disk has a very important position in the maintenance of Linux servers. Here is a way to introduce a floppy disk boot disk in the Windows environment. This is mainly because most system administrators still have a computer with a Windwos operating system. Instead, just use the Linux operating system as a server. The server is placed in a fixed place, and some are not even equipped with a display. For this reason, it is more troublesome to create a floppy disk on a Linux server. So I am here to push the Winwos client to create a floppy boot disk. The tools used here only need the RedHat installation disk. The system administrator first puts the Linux installation disk into the CD-ROM drive of the Windwos client. Then open the DOS interface of the Microsoft operating system and go to the directory where the CD-ROM is located. In the RedHat installation disk, there is a directory called dosutils, in this directory there is an executable command file called rawh. This is the file it uses to create the boot disk. After the floppy disk is ready, execute this command. Then this command will ask for the floppy disk image, enter the full path name, and insert the prepared floppy disk into the floppy drive. When the application determines to you which floppy disk drive you need to write the boot image to, you can specify the floppy boot initiator, which is usually a:. In addition, if you boot from a floppy disk, it is similar to booting from a CD. If the installation is initiated using a floppy disk, the user may be asked to confirm the language used, the type of keyboard selected, the type of mouse selected, and so on. At this point, the Linux bootloader is not as strong as the Windows bootloader and does not automatically identify the connected device. To do this, you need to specify the keyboard and mouse type used by the system administrator during the boot process. After the next device change, if you change the mouse from three buttons to two buttons, or if the mouse's excuse changes, you still need to reconfigure. It can be seen that at this point, the Linux operating system is not as good as the bootloader of the Windows operating system. But in general, the floppy boot disk function of the Linux operating system is still very powerful. For this reason, it is strongly recommended that system administrators need to create a floppy disk boot disk when deploying a Linux server. Since the floppy disk boot disk is prone to be bad, it is also possible to create one more. Third, to achieve a good plan to partition the Linux operating system partition planning and Microsoft operating system partition planning. The latter partition planning has little impact on its performance. However, the partitioning plan of the Linux operating system is different, which has a great impact on the performance of the server. In fact, the Linux operating system partition can be compared to the table space planning in the Oracle database, and the two of them have the same effect. The quality of the plan will directly affect the performance of its operation. And only need to make some adjustments during deployment, the impact on subsequent performance is very significant. If you use the Linux operating system as a server, you will consider placing some special directories on different partitions, which will improve the performance and security of subsequent servers. For example, you can place the /tmp directory and the /home directory on different partitions; for example, you can place the /var and /usr directories on different partitions. If hardware conditions permit, it is best to place the /var directory on a separate partition. Because these directories have their special uses and are used more frequently. If they are placed separately, the reading efficiency of the data can be improved, and the space contention between each other can be reduced. In addition, the exchange partition also needs special attention. The swap partition under the Linux operating system is like virtual memory under the Windows operating system. However, there are significant differences between the two under subsequent adjustments. For example, in the Windows operating system, if the virtual memory is not enough, you can adjust it in the system properties and advanced tabs. And even if this virtual memory is subsequently adjusted, the subsequent increased space has the same performance as the original space. In the Linux operating system, if the virtual space is later found to affect the performance of the application, it will even affect the installation of the application. At this point, if you want to adjust, the process of adjustment is much more troublesome than the Windwos operating system. If you need to reinstall the operating system or re-partition a hard disk from the hard disk to use as a swap partition. However, if a space is not divided into virtual memory on the hard disk afterwards, the subsequent addition of the space is not as efficient as the space specified in the installation process. For this reason, unless this Linux server is already in use, it is recommended to expand the number of swap partitions by reinstalling. Therefore, it is best to plan the work between the installation and deployment of Linux servers, preferably related partitions. The main thing to consider is to store those directories on different paths, how much swap partition space to set, and so on. Typically, an experienced system administrator can plan this partition appropriately based on the application services to be deployed next. This is also a big difference between senior system engineers and rookie system administrators. Because rookie-level system administrators may only use the default configuration in the operating system. It is also possible to use this default configuration directly, but the performance of subsequent servers will be affected. After the partition is set, it is difficult to adjust later. Even if the adjustment is made, its performance is not as good as expected. Therefore, it is necessary to make a zoning plan in advance.


Fourth, close the unneeded service As with the Windwos system, the system will start a lot of services after the installation. Some of these services are required by the operating system or application. But some do not need to be activated. If it is started, it will bring certain security risks to the operating system. To do this, the system administrator needs to view the services it runs after deploying the Linux operating system. Then turn off some unwanted services as needed. To this end, system administrators must have the ability to determine which services are required and which services can be turned off. At this point, the system administrator can refer to the description of some applications and combine their own work experience to make judgments.

Copyright © Windows knowledge All Rights Reserved