Ls
The code is as follows:
$ ls #查看当前目录下文件conf lnmp_install.sh README vhost_ngx_pagespeed.shinit.sh ngx_pagespeed.sh Source vhost.sh
The code is as follows:
$ ls conf #查看conf目录下文件index.html nginx.conf pureftpd-mysql.conf tz.phpInit.d.nginx pure-ftpd.
fdisk partition Fdisk/dev/sdb -P View Current partition-T change the partition number-W write partitioned table to disk-N Create partitions-P Primary Partition-E Extended partition partprobe the kernel to update partition information
When a field in a database, such as an ID, is an integer, the new insert data needs to be sorted from the total maximum value of the current database plus 1.
The maximum ID for the current production database is 150, so it is necessary to start
In the work, we may encounter such a problem, found that a disk space is nearly full, so, find some useless large files deleted it, found that the disk space is still not released, this is why? How to solve it? Here's to reproduce the whole process:
First, the phenomenon of failure
Business side colleague Mail, a current network host using the correct username password SSH login (previously normal), the use of other users "Su-this user" input password can normally switch in. It is also normal
Samba enables file sharing between Linux and win, and is excellent for in-house development of document sharing.
Installing Samba
See if Samba is installed
# Rpm-qa | grep Samba
Install Samba server and client directly via Yum
#yum-y Install samba
1. Add Virtual user list
Create a virtual user list file, save the virtual account you want to configure, in the form of the first line user name, the second line password, and so on.
# vi/etc/vsftpd/virtual_user_list
ftp_www
123456
ftp_log
12345
512M VPS Optimized Apache memory
View current memory consumption
Ps Aux|grep httpd
Basic one occupies about 50M
PS Aux|grep httpd | Wc–l
A total of 13, minus the grep httpd line of 12, indicating a footprint of about 600MServer 512M memory
Check first, there is no vsftp server
Rpm-qa | grep *ftp*
If so, please uninstall it
Installing the VSFTPD server
Yum-y Install VSFTPD
Modifying a configuration file/etc/vsftpd/vsftpd.conf the following items
#禁止匿名访问Anonymous_enable=no
Linux when starting a process, the system will create a PID-named folder under the/proc under which there will be information about our process, including a file named EXE that records the absolute path, which can be viewed by ll or ls–l commands.
You can count the current number of connections by following this command
Netstat-n | awk '/^tcp/{++s[$NF]} end {for (a in S) print A, s[a]} '
This statement returns the following results
1.time_wait 3462.FIN_WAIT1 853.fin_wait2 64.ESTABLISHED 1
View CPU Footprint
Enter top on the command line
You can start top
Top Full Screen Dialog mode can be divided into 3 parts: System Information Bar, command input bar, process list bar.
Use top to view system load
The top command can dynamically
1. Modify the/etc/resolv.conf on the server so that its contents are only similar
NameServer 192.81.133.229NameServer 114.114.114.114
The resolv.conf of the problematic machine always contains addresses such as localhost or 127.0.0.1. That is,
The recent period of time has been plagued by spam comments, the server was once too high and downtime, see: wordpress spam Comment defense. Start to try a lot of methods can not be a good solution to the problem, and finally by shielding spam
List of required equipment:
A free mainframe.A router that has already been brushed OpenWrtA wireA 2G USB drive.Before you do this, make sure you have a router that has brushed the openwrt, then power the router and connect the router via a network
Prior to the company's system due to the problem of network cards, often a switch (switch excluding the attack factors) or suddenly hung up,
Seriously affects the normal availability of the service, so you want to resolve it automatically when this
The code is as follows
Copy Code
[Root@lee ~]# git clone https://github.com/aluzzardi/wssh.git
After downloading, go directly to the directory installation
The code is as follows
Copy Code
[Root@
First install various decoder1. lameLame-3.99.5.tar.gzUrl: http://sourceforge.net/project/showfiles.php? Group_id = 290 & package_id = 309The installation method is as follows:1 tar-zxvf lame-3.99.5.tar.gz2 cd lame: 3.99.53./configure --
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