Custom yum repository and configuration file in CentOS

Yum uses the repository to save the software packages for managing rpm and the repository configuration files stored in/etc/yum. repos. the format in the d/directory is as follows: [LinuxCast] # repository name = explanation of repository name #

View the compilation parameters of Nginx, Apache, lighttpd, Mysql, and Php.

View the parameters of some common services during compilation and installation: 1. Nginx compilation and installation parameters [root @ test ~] #/Usr/local/nginx/sbin/nginx-Vnginxversion: nginx/0.7.65builtbygcc4.1.220080704 (RedHat4.1.2-48)

Deep understanding of Centos file system

1. Why can the files in the rm-rf directory be recovered after being deleted? First, create an empty directory test. The blocksize of the directory is 4096 bytes. is it an empty directory or 4096? First, the directory size depends on the inode

CentOStr & cut command explanation

Tr-d delete matched characters-s delete the same consecutive characters & #39; [string1] & #39; & #39; [string2] & #39; replace string 1 with string 2cut-b in byte, letters and spaces, and Chinese characters in three bytes: 1-3 (first three bytes)

Use rinetd for port forwarding in CentOS

In windows, port forwarding usually uses the built-in nat and rinetd programs for port forwarding ing in porttunnel and portmaplinux. The start method is rinetd-c/etc/rinetd. conf, pkillrinetd shut down the process tool home page: http://www.boutell.

Modify the MAC address of CentOS

Many software applications need to bind MAC addresses (for example, OpenCountry). sometimes we need to modify the MAC address of the NIC for special purposes. 1. Method 1: Use the command to temporarily modify: ifconfigeth0downifconfigeth0hwetherxx:

Rename command in CentOS

In Dos/Windows, rename the file. The book says that the mv should be used for renaming files or directories in Linux. I have been doing this all the time, but ignored that there is also a command named rename in Linux. All are rename, but the

Use the ltp kit to perform a stress test on the Centos system

Ltp is a system test suite developed by LinuxTestProject. It develops a Test combination based on the utilization rate of system resources to provide sufficient pressure for the system. 1. obtain the software. First, we can The ltp suite is a system

Enable CentOS 32-bit support for memory larger than 4 GB

When a CentOS5.6 machine needs to upgrade the memory to 6 GB, the system is found to be 32-bit, so the search can enable the 32-bit system to support 4 GB memory or above. How does one make linux/Centos32-bit support 8 GB memory? The kernel-based

View the last logged-on user information in CentOS

We know that in redhat, you can use lastlog to view the last logon information of each user, and use last to view the logon information of the specified user. View user login information: detailed explanation of last command function description:

Detailed description of CentOS running-level init

This article describes in detail the roles of different running levels in startup. Linux seems to be a monster for advanced users on the DOS/Win9x/NT platform. No config. sys, no autoexec. bat, and machine configurations with personal

Badblocks command in CentOS

A hard disk is a consumable device. when used for a period of time, physical faults such as Bad Channels may occur. If a bad track occurs on the hard disk of a computer, if it is not replaced or processed in time, the number of bad tracks will

Macro in crontab in CentOS

1. define the time bar using crontab-e to compile the scheduled task. the format is: reference the first five digits of the *** command, the minimum interval between minute, hour, day, month, and week cron is one minute. that is, the cron service

Run the mysql command through the command line

There are two ways to execute SQL commands under the command line. The first is to use the "-e" parameter to specify the SQL statement to be executed, and the second is to use the pipeline. Syntax and example: 1. MYSQL_HOME/bin/mysql-u username-p

Replacing the content in files in batches in Centos

The sed command is easy to use for a single file. If you want to replace all the files in a specified folder, combine grep and sed into a command. The grep command can be used to search for the content of a single file or a file in a folder. the

CentOS command line performance detection tool

1. the uptimeUptime command displays how long the server has been running, how many login users there are, and the overall server performance evaluation (loadaverage ). The loadaverage value records the load of the last 1 minute, 5 minutes, and 15

Common shortcut keys in linux

It is essential to use the command line in linux. Mastering the shortcut keys can help you get twice the result with half the effort. The most commonly used key should belong to the Tab key, and the function is automatically completed. It is mainly

Change centosyum source

In centos, you can use yum to conveniently and quickly install the required software and libraries. if The yum source is not good, the installation speed will be very slow. by default, centos official sources appear to be outside China, so the speed

Configure sub-domain redirection in nginx

Currently, many websites can assign users a custom second-level domain name, for example, myname.netingcn.com. but the actual access address may be www.netingcn.com/user.php? Uid = myname. To make it work properly, configure wildcard domain name

How to replace vi in CentOS

You can use commands to quickly replace text when editing files using vi. The following describes how to replace the first OLD of the current row with NEW: s/OLD/NEW, so the OLD is NEW: s/OLD/NEW returns all OLD values in the current file as NEW: %

Total Pages: 2732 1 .... 1924 1925 1926 1927 1928 .... 2732 Go to: GO

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.