First, the company has a printer with the HP LaserJet m1120 mfp model, which is inconvenient to use because it is not a network printer, the boss of the company asked to connect the printer to the company's intranet linux Server (CentOS) and then
Preface
A few weeks ago, I had a computer, a Gigabit Z77-DS3H, and CentOS 6.4. It is depressing that this system does not support NIC with built-in points on the motherboard. No way, I have been alone for a long time, and finally I have solved it.
/Configure is the first step in source code installation. It mainly serves to configure the software to be installed and check whether the current environment meets the dependency of the software to be installed, but not all tar packages are source
Gnu grub ("GRUB" for short) is a multi-operating system startup program from the GNU project. GRUB is the implementation of multi-boot specifications. It allows you to have multiple operating systems in your computer and select the operating system
DNS is the server used to resolve the back-end IP address of the domain name. Like Windows and Linux, you can customize the DNS address, which is easy to modify. When Linux is used as a website server and Wordpress query is slow, you can try to
Format: tar option file directory listFunction: Package and back up the file directory.Option:-C create a new archive file-R: append an object to the end of the archive object-X solve the file from the archive file-O unlocks the file to the standard
View System Service monitoring status
Netstat-tunlp
View the IP addresses that have the most connections to a service port
Netstat-nat | grep "10.150.185.178: 80" | awk '{print $5}' | awk-F: '{print $1}' | sort | uniq-c | sort-nr | head-20
Enable port 80 access in CentOS firewall settings
The following is an example of adding port 80:
[Root @ centos httpd] #/sbin/iptables-I INPUT-p tcp -- dport 80-j ACCEPT
Save
[Root @ centos httpd] #/etc/rc. d/init. d/iptables save
Iptables: Save the
View the size of the linux File directory and the number of files contained in the folderTotal statistics sizeDu-sh * // * indicates all directories currently.Du-sm * | sort-n // count the current directory size and sort the directory size.Du-sk * |
1. acpi-support-you 'd better set the running level in S to "X.2. acpid-acpi daemon. These two are used for power management and are important for Laptops and Desktops, so they are enabled.3. alsa-if you use the alsa sound subsystem, yes, enable it.4
1. Linux BasicsInstall Linux operating system Linux File System Linux Common commands Linux Startup Process detailed explanation familiar with Linux services can install Linux operating system independently can skillfully use basic commands of Linux
When a CentOS 5.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 enable 32-bit linux/Centos to support 8 GB memory? The
# How to partition a linux system in a production scenario?# Date: 2011-07-31# Author: Old Boy# QQ: 31333741 MAIL: oldboy521@hotmail.com# QQ group: 45039636# Blog: http://oldboy.blog.51cto.com# Psite: http://oldboy.cc (coming soon)# Pblog:
Understand LVM Management in Linux:
LVM is short for LogicalVolume Manager (logical volume management). It is a mechanism for managing disk partitions in Linux. It can be deployed on multiple physical volumes (PVs) create a virtual disk volume group
Objective: To create a 1rpm pack Based on trafficserver2.1.6
1. Create a working directory for building. I will use trafficserver as an example.
Mkdir-p trafficserver/{RPMS, SRPMS, SOURCES, BUILD
2. Download The trafficserver. rpm source code.
According to the company's needs, to build a file server, we first thought of Samba. Secondly, to facilitate the expansion of the disk space occupied by each department, we decided to adopt lvm. The process is as follows:
1. Create a linux partition
Free-m check whether swap is larger than the memory size; otherwise, swap should be expanded.Swapoff-Cd/Mkdir swapCd swapDd if =/dev/zero of = swapfile bs = 1 M count = 4096Mkswap swapfile# Activate a swap fileSwapon swapfileFree-m
Directly copy
Convert the rm command in linux to move the file to the recycle bin.
Rm is the command to delete files in Linux. It is a very powerful but dangerous command in Linux. In particular, rm-rf is sometimes so powerful that you can cry, when you want to
First, go to the yum source configuration directory.Cd/etc/yum. repos. dYum source of the Backup SystemMv CentOS-Base.repo CentOS-Base.repo.save# Cd/etc/yum. repos. d/# Wget http://mirrors.163.com/.help/CentOS-Base-163.repoCopy code4. Use# Vi CentOS-
In CentOS5, a method for achieving password-less communication between two-host rlogin and rsh is ========================== ================================== Author: cnhtm (http://cnhtm.itpub.net)Posted at: 2010.01.13Category: General
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