I. first introduced that the most popular Desktop linux is also the ubuntu most popular among hackers and network administrators:1. Press E in the grub option menu to enter the editing mode.2. Edit the last line of the kernel (by space) and add
Apache:If the RPM package is used for installation, the installation path should be in the/etc/httpd directory.Apache configuration file:/etc/httpd/conf/httpd. confApache module path:/usr/sbin/apachectlWeb directory:/var/www/htmlIf source code is
Iptables is a good firewall software in Linux, this article describes how to install iptables, add and clear rules, open specified ports, and shield basic applications of iptables in CentOS, such as specified ip addresses and ip segments.
1. Install
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
The find command in linux is used to find files. man find can be used to find files that are omnipotent. Therefore, simply find the file according to the file size. Search for the size from man find. The following information is displayed:
-Size n [
We all know that the linux system has extremely powerful functions, but sometimes the functions are not necessarily what we want, in some cases, we want a simple system that consumes less resources and runs some basic functions and commands. At this
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
Each line of the/etc/gshadow file is separated by ":" into four fields.
1. User Group Name
2. User Group Password
3. User Group Administrator name
4. Supported account names
--------------------------------------------------------
Etc/gshadow is an
/Etc/sysconfig/network includes the basic network information of the host for system startup./Etc/sysconfig/network-script/the directory contains the information about the most initialized network started by the
Nic binding means that multiple NICs are logically used as one Nic. It can be divided into two types: Server Load balancer binding and redundant binding.1. Edit the Virtual Network Interface Configuration File
[Root @ test ~] #
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
There are three common methods to view the linux kernel version and system information:
Uname-a; more/etc/issue; cat/proc/version;
2. View apache version information. if the version is installed using yum or rpm, you can use rpm-qa | gerp httpd
ProblemAssume that the user name is ali.If the user name does not have the superuser permission, when you enter the sudo + command, the system prompts:The Code is as follows:Ali is not in the sudoers file. This incident will be reported.Solution1.
A chance of accidentally installing a DB database found that the installation was slow, so the system engineer suggested that I test the hard disk read/write speed and found that the read/write speed was only about 200,
The machine is dellR710
Attach a disk named hda2 to ount/dev/hda2/mnt/hda2-confirm the directory '/mnt/hda2' already existsUmount/dev/hda2 detach a disk named hda2-first exit from the mount point '/mnt/hda2'Fuser-km/mnt/hda2 force uninstall when the device is
Recently, hadoop was developed on Linux, So I installed a virtualbox Virtual Machine and installed a centOS system on the virtual machine. Linux is installed, but network configuration is another headache. I mainly want to allow the host machine and
Multiple multi-core CPUs are now the mainstream servers. Many applications, such as Squid and nginx, have the ability to distribute processes or threads to different CPU cores.
How can we view the distribution of different processes in the CPU core.
When using the CentOS system, we may encounter a problem of inaccurate time. How can we solve this problem? Here we will teach you a method for time synchronization in the CentOS system, I hope you can solve your own problems.
Perform the following
In other CentOS or RedHat systems, if services are installed later, such as httpd, mysqld, and postfix, the system will not start automatically after installation. Even if you manually run/etc/init. d/mysqld start to start the service, the system
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