1 It is best to extract the tarball data into the/USR/LOCAL/SRC (as the file name can see)Cd/usr/local/srcTAR-ZVXF softwareCode.tar.gz2 each software is installed separately under/usr/local/softwarename (easy to reverse install)./configure--help
Install Arch Official instructions to install FCITX, in the. XProfile set export Gtk_im_module=fcitx and other three sentences, in Firefox can not input Chinese.You can enter Chinese after changing the FCITX in three sentences such as export
solve Linux Ping:unknown host www.baidu.comReprint website: http://www.kankanews.com/ICkengine/archives/48417.shtmlSolution:If a Linux server ping does not pass the domain name, the following prompt:[root@localhost ~]# Ping www.baidu.com
Samba has five levels of security, namely: Share: No Samba account is required to log on to the Samba serverUser: You need to add a Samba account to log into the Samba serverServer: The user is authenticated by another Samba server.Domain: Joins the
1. Count the number of files in the/usr/bin directory
[Email protected] ~]# Ls/usr/bin | Wc-l1306[[email protected] ~]#
2. Remove the shell of all users on the current system, requiring that each shell be displayed only
Arrays: You use an index to store multiple data as a collection.Normal array: The index of an array can only use integersAssociative arrays: Array indexes can use integers and strings (associative arrays are supported for versions above
Listen (Waiting for connection)Correlation function Socket,bind,accept,connectTable header file #include define function int Listen (int s,int backlog);The function Description Listen () is used to wait for the parameter s of the socket connection.
Linux Canopy Edition VIMRC configuration-v2.version 0, as follows: [Shell] $cat.VIMRC "=="Author: Roc"Website: Roclinux.cn "Version:2.0"=="VIM support Go language-start" Close file type detection function filetypeif"Close file type plug-in loading
Introduction: Advanced I/O includes non-blocking I/O, record locks, System V-flow mechanisms, I/O multiplexing (SELECT and poll functions), READV and Writev functions, and storage-mapped I/O.(i) Non-blocking I/OA class of system calls that may cause
System Environment: Centos 5.5
Note: Configure Fail2ban on Centos
######################################## ##################
1. Install the Fail2ban ServiceDownload rpmforge, which contains a large number of the latest rpm packages.Wget
By default, the history command is displayed without any execution time.If you want to use the execution time of the record command, perform the following operations:# Edit/etc/bashrc and add the following content# Let the system record the
# View the number of httpd ProcessesPs-ef | grep httpd | wc-l
# View the number of concurrent Apache requests and their TCP connection statusNetstat-n | awk '/^ tcp/{++ S [$ NF]} END {for (a in S) print a, S [a]}'------------------------------------
System command:
# Uname-a # view kernel/OS/CPU information # head-n 1/etc/issue # view OS version # cat/proc/cpuinfo # view CPU information # hostname # view computer name # lspci-TV # list all PCI devices # lsusb-TV # list all USB devices # lsmod #
CentOS is the product of source code re-Compilation of RHEL (Red Hat Enterprise Linux), and many known bugs have been fixed on the basis of RHEL. Compared with other Linux distributions, CentOS is trustable.
During system maintenance, you may need
The su command is used to switch to another user identity.
If "user" is ignored when su is used to switch identities, the system switches to the "root" identity by default and requires a password. When switching from the root user to another user,
You are now a root user and want to leave a backdoor.
System Environment:
Dawg :~ # Uname-
Linux dawg 2.4.20-1-386 #3 Sat Mar 22 12:11:40 EST 2003 i686 GNU/Linux
1. SUID shell
First, switch to the root user and run the following command:
Dawg :~ #
Document Content Query
Cat: displays the file content starting from the first line.
Tac: displays the file content starting from the last line
Nl: displays the row number.
More: displays the file content on one page.
Less: similar to more, but it
Popular Science:
301 permanent redirect: when a user or search engine sends a browser request to the website server, one of the status codes in the header information returned by the server in the HTTP data stream indicates that the webpage is
RedHat cannot use the official update source. Therefore, you have to replace the RedHat official source with the CentOS open source. The procedure is as follows:
1. Replace the RedHat yum program:
[Plain] view plaincopy
[Root @ leekwen] #
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