Linux centos port 80, 22, and 3306

1. Set [root @ localhost ~] #/Sbin/iptables-I INPUT-p tcp -- dport 80-j ACCEPT [root @ localhost ~] #/Sbin/iptables-I INPUT-p tcp -- dport 22-j ACCEPT [root @ localhost ~] #/Sbin/iptables-I INPUT-p tcp -- dport 3306-j ACCEPT2. Save [root @ localhost

Install and use rsync in linux

Install rsync first and then find/-name "rsync". find the installation file and create the rsync configuration file mkdir/etc/rsyncvi rsync. conf # Minimal configuration file for rsync daemon # See rsync (1) and rsyncd. conf (5) man pages for help #

How to debug core files in Linux

When a program unexpectedly exits, the kernel will generate a core file (a memory image with debugging information added) in the current working directory ). You can use gdb to view the core file and indicate the file and number of lines of code

Linux Nic Configuration

Nic configuration file(1) The/etc/sysconfig/network-scripts/ifcfg-interface-name configuration file ifcfg-interface-name contains most of the details required for the initialization interface. The interface-name varies according to the type and

Build the svn + ssh service on Linux

Create a version library svnadmin create path to grant the svnusers user group the chown-R root: svnusers path chmod-R g + rws path/* to grant the svnusers group the read and write permissions, you can change the corresponding permissions */chmod-R

Tracking the number of files opened in Linux and Solutions

During the issue investigation of ccps too program open files of the O2 project, there were a lot of problems. I just did a test: 1, how to view the number of files opened by the current process (this number fluctuates in real time) the following

The maximum number of opened files configured in Linux

Background: after the project is launched, it is found that the Telnet module is automatically disconnected after a period of stable operation and cannot be logged on. The background throws the exception "java.net. SocketException: Too program open

Common linux Account management commands

1 groups: list all groups to which the current user belongs. 2. Change the valid user group of the current user to groupname in newgrp groupname. A user can belong to multiple groups, but there is only one valid user group. When a new file is

Ubuntu automatically mounts the specified device

When ubuntu is started, it reads configuration information from/etc/fstab and automatically mounts the specified device according to the configuration in fstab. The fstab file has a certain format. The following is the output after cat/etc/fstab is

Common centos users cannot log on to ssh

Check the/etc/ssh/sshd_config file and find that the root user can directly log on to SSH without any restrictions .. generally, the default centos can log on to SSH after setting up a new user, but I cannot log on to SSH. The reason is that UsePam

One linux Command per day read

The read command reads information from a line of the keyboard or file and assigns it to a variable. Read var1hello world puts hello world into the variable var1, which can be viewed through echo $ var1 output. When the variable after reading is a

Head commands in linux

In linux, the head command is used to view the content of the first few lines of a specific file. The specific format is as follows: head : you can use the head command to view the first few lines of content in a specific file. This command is the

Automatically Set screen brightness when Ubuntu 12.04 is started

Ubuntu 12.04 automatically sets the screen brightness after Ubuntu is installed, it is found that each boot screen is the maximum brightness, It is very troublesome to set the brightness every time, So search for a solution on the Internet, however,

Load Balancing using Lvs DR Mode

Lvs DR mode is short for implementing Server Load balancer. LVS is a Linux Virtual Server. To adapt to LVS, you can build a high-performance Server Load balancer system. LVS has three modes: LVS/NAT (Network Address Translation), LVS/TUN (IP tunnel),

Use vim to compare files

Use vim to compare files 1. use vim's comparison mode to open two files: vim-d file1 file2 or vimdiff file1 file2. if the file file1 has been opened, open another file file2 for comparison: vert diffsplit file2 if the vert command is not used,

Install net-snmp5.7.1 in ubuntu

Ubuntu install net-snmp5.7.1 under Ubuntu install net-snmp, the specific steps are as follows: 1, get net-snmp installation package, here we select the source code installation method, of course, you can also select the ubuntu network Download

How to build Linux Kernel on VMware

There are a lot of articles about the Linux kernel build on VMware on the network of the Linux kernel build Method on vmware. The main problem is that the kernel cannot be started normally after buildc is successful. This is a bug of vmware and

View commands in linux

View the processes that consume the most CPU and memory in linux. top 10 processes with the most CPU usage: ps auxw | head-1; ps auxw | sort-rn-k3 | head-102. top 10 processes with the most memory consumption ps auxw | head-1; ps auxw | sort-rn-k4 |

Fcitx cannot be started or activated.

Fcitx startup/activation failure solution OS: Linux Mint 15 Olivia CinnamonFcitx: fcitx version: 4.2.8.1 after fully uninstalled ibus, install fcitx AND THE sougou input method from the source, however, it cannot be activated in software such as

How to Control remote hosts and execute commands remotely through ssh

It is very simple and practical to teach you how to control the remote host through ssh and how to remotely execute commands on the remote host through ssh. Step 1: Set ssh Authentication-free. Authentication-free means that you can directly log on

Total Pages: 5467 1 .... 4611 4612 4613 4614 4615 .... 5467 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.