General centos users add sudo permissions

In centos, you can add sudo permissions to common users. For more information, see. 1. modify the/etc/sudoers file, which must be the mongodo command. # Login do-f/etc/sudoers add the user xxxALL = (ALL) ALL2 you need like rootALL = (ALL) ALL, and

Centos uses iptables to redirect website access

For some reason, we need to redirect the httpd service accessing 10.0.3.49 to 10.0.3.26. so we studied how to use the NAT of iptables to redirect IP addresses and ports. In fact, it is very simple. we only need two steps. 1. First, make sure that

CentOS6.4 installation and use experience summary 1

Outline 1. installation 2. enable Nic 3. modify the host name (web.test.com) 4. modify DNS (8.8.8.8) 5. configure 163yum source 6. disable SElinux 7. disable firewall (ipv4 and ipv6) note: The 64-bit CentOS6.4 system is installed in the minimal

Centos disk partition tutorial

1. the disk partition format indicates that linux partitions are different from windows. in linux, the hard disk device name (hdx for IDE hard disks (x for disks from a-d) is used because up to four hard disks of IDE, SCSI, SATA, the USB hard disk

CentOS dual-network interface policy routing test

1. Reference link: ---- you can configure according to the following link. in redhatlinux, you can go back to the NIC from which the target address is located: Swap (for interchange I. Reference link: ---- You can configure the following link. in

Centos file search command

1. locate --- & gt; search for the database generated in advance, fuzzy search, updatedb update the locate database-I: ignore the case of the file name-n: only show the first n rows of eg: lo 1. locate ---> searches for the database generated in

Basic Centos Operating system usage knowledge

In Linux, when we open files such as Word in Linux, we often find that many words cannot be correctly displayed, in fact, this is because most of the documents created under Windows have a font of, but this font is not used by default in Linux.

CentOS uses PAM to lock users who fail to log on multiple times

Linux has a pam_tally2.so PAM module to limit the number of logon failures. if the number of logon failures reaches the set threshold, the user is locked. Compile PAM configuration file # vim/etc/pam. d/login # % PAM-1.0authrequiredpam_tally2.sodeny

CentOSSSH installation and configuration

SSH is short for SecureShell, developed by the IETF Network team (NetworkWorkingGroup). SSH is a security protocol built on the application layer and transport layer. Traditional network service programs, such as FTP, POP, and Telnet, are inherently

CentOSchmod command usage

Command name: chmod permission: Usage of all users: chmod [-cfvR] [-- help] [-- version] modefile... note: The file calling permissions for Linux/Unix are divided into three levels: file owner, group, and others. Chmod can be used to control how

Simple configuration process of SVN server in CentOS

To improve work efficiency, we use version control software to manage projects, such as svn and git. Next, we will take svbversion as an example to talk about how to install svn and deploy the project. I. install the svn server, use anonymous users

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)

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:

Differences between shutdownhaltrebootinit and CentOS shutdown commands

In linux, some common shutdown/restart commands include shutdown, halt, reboot, and init, which can be used to restart the system. However, the internal working process of each command is different, through the introduction in this article, we hope

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

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

Set hostname in centos

In centos, you can run the command hostname or uname-n to view the current host name. if it is not set, it is set to localhost by default. for details, see the startup script:/etc/rc. d/rc. sysinit. To modify the host name, you can change the

Total Pages: 2732 1 .... 1810 1811 1812 1813 1814 .... 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.