Today, old Zoo in the process of trying a tutorial compile make to see the CentOS environment appears "-bash:make:command not found" error prompts, before seems to have not encountered such a problem. Should be caused by a lack of a component in the
Preface * * * * This article is not a tutorial, only for reference to the small night tutorial a record of the operation, for everyone to make a reference.
First, SSH uses the root user login to check the current hard disk space usage:
Batch kills the process that contains the keyword "php-fpm".
Kill ' Ps-ef|grep Process name | Grep-v Grep|awk ' {print $} '
For example:
Kill ' Ps-ef | Grep/etc/pam.d/su |grep-v grep |awk ' {print $} '
Batch Kill a program process that contains
DD is a very useful command under Linux/unix, which is used to test the sequential read-write capability of a hard disk by copying a file with a specified size and making the specified conversion at the same time as the copy. Can write files, can
Description
Operating system: CentOS
Disk capacity of 300GB, before the partition of only a 150GB/data partition, now/data partition is not enough.
Requirements: Increase the remaining 150GB capacity of this disk to
It is easy to start Tomcat by default using the Tomcat bin/start.sh script under Linux, but if you need to have Tomcat listening on port 80, you must use root to start Tomcat, which is a security risk. You can start Tomcat by using
Preparing the server
4 servers, configured in each hosts, named storm Storm1 Storm2 Storm3,storm used as nimbus,drpc,admin etc.Java environment to be configured well
Deploying Zookeeper Clusters
Create a data, log directory for each zookeeper
The code is as follows
Copy Code
Happy robber Or Happy robber
If you can find the rules, it is easy to deal with them. Just use sed to get rid of it directly.
The direct one of the above:
The code is as
One, install the compilation tool
The code is as follows
Copy Code
Yum install ctags wget make apr* autoconf automake gcc gcc-c++
Second, download Webbench
The code is as follows
Copy Code
The command for a single IP is:
The code is as follows
Copy Code
Iptables-i input-s 211.1.0.0-j DROP
The command for the IP segment is:
The code is as follows
Copy Code
Iptables-i
Directory Operations:RM-RF Mydir/* Delete Mydir directory * *mkdir dirname/* Create directory named DirName * *CD mydir/* Enter Mydir directory * *CD-*/* Back to the previous directory */Cd.. /* Back to the parent directory, with space in the middle
First modify the configuration file ssh Port change method
Vi/etc/ssh/sshd_config
Find #Port 22 This sentence, here is the identity by default use 22 port, modified to the following:
Port 22 does not remove number 22nd because no new port number
Linux is sensitive to file directory capitalization, and URL case sensitivity can cause web pages to not open, one of the solutions is to enable the Apache mod_speling.so module. Suppose the Apache installation directory is/usr/local/apache2.
First,
1.FDISK-L View partition information
Enter the Fdisk interactive interfaceM View HelpL View the file system number and nameN New PartitionD Delete PartitionsP View partition table (partition information)t change the partition file system typeQ Do
Check to see if Linux is in accordance with Samba services, RPM-QA | grep Samba if not installed, yum installation or RPM-IVH installation, then service SMB start to see if the SMB service is started with Ps-aux | grep SMB or see if the
Linux CentOS reboot Command:
The code is as follows
Copy Code
1, reboot2. shutdown-r now reboot (root user)3, Shutdown-r 10 over 10 minutes automatic restart (root user use)4, Shutdown-r 20:35 reboot at 20:35 time (root
Take CentOS6.3 as an example.The selected hard drive device name is/DEV/SDA, which is the first stat hard drive, then it is divided into 3 primary partitions and an extended partition with the device name/dev/sda1,/dev/sda2,/dev/sda3,/dev/sda5. Our
Linux directory structure 1.tree L 1/: structure of the display /2./usr/bin: Application3./etc/: configuration file4./ETC/INIT.D Startup file5./ Storage System Program6./USR: Store User's program7./home: home directory for ordinary users8.uname-a (
Tar-C: Create compressed archives-X: Unzip-T: View content-r: Append files to the end of a compressed archive file-U: Update files in original compressed packageThese five are stand-alone commands, which use one of the compression decompression, and
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