Assume that all PHP files under the ipaddr directory need to be encoded from gb2312 to utf8
CD ipaddrFind./-type F-name "*. php" | while read line; doEcho $ lineIconv-F gb2312-T UTF-8 $ line >$ {Line}. utf8MV $ line $ {Line}. gb2312MV $ {Line}.
The main task of user management is to create a legal user account, set and manage user passwords, modify user account attributes, and delete obsolete user accounts when necessary.
1. Add a new user
In Linux, only the root user can create a
1. Man helps explain familiar or unfamiliar commands. For example: man ls, you can view LS-related usage.
2. ls viewing directories or files
3. Copy files using CP
4. rm delete files and directories
5. Remove the directory or change the file
The latest version of rsync can be found at http://rsync.samba.org/rsync. Its features are as follows:1. images can be used to save the entire directory tree and file system.2. It is easy to maintain the permissions, time, and soft links of the
1. system security record files
Recording files in the operating system are important clues for detecting network intrusion. If your system is directly connected to the Internet, you find that many people try to telnet or FTP your system, you can
Grub is to configure the/boot/GRUB/grub. conf file.
First, let's talk about the benefits of grub encryption.
1. users who do not know the password cannot start the system.
2. prevent others from modifying startup parameters.
###############
I. Introduction to decompression commands
Tar command
-C: Create a compressed file
-X: Extract
-T: View content
-R: append an object to the end of the compressed archive object
-U: update files in the original compressed package
These five are
After being tested by Zhiwen Studio, the relevant configurations are as follows:
Copy codeThe Code is as follows: location ~ \. Php (. *) $ {
Fastcgi_pass unix:/tmp/php-cgi.sock;
Fastcgi_index index. php;
Fastcgi_split_path_info ^ (. + \. php) (. *)
1. vim/var/named/chroot/var/named/hrsx.com. zoneAdd a row:
Copy codeThe Code is as follows: * in a 192.168.0.204
2. To the apache server, vim/usr/local/apache2/conf/extra/httpd-vhosts.conf
Copy codeThe Code is as follows:
SetEnv APPLICATION_
1. Check network connectivity through timed sending and receiving email
Copy codeThe Code is as follows: #/bin/bash
Echo "Daily test mail"> state.txt
Mail-s Server_State abc@jbxue.com Rm-df./state.txt
~Crontab-eAdd the following task10 07
I have read that/proc/net/dev in linux records the packets and number of segments sent and received by each Nic. Therefore, I wrote an idea. Running effect:
Copy codeThe Code is as follows: [root @ 74-82-173-217 ~] #./Net. sh
Current Ip: inet addr:
This chapter describes how to keeps time in Linux and how to avoid problems. Generally, you do not need to do anything about time, but it is better to understand it.
Time Zone
Time measurement is based on the most regular natural phenomenon, such as
GFS is actually a Network Log File System, which is usually used as a shared storage device by multiple computers. Because GFS is a log file system, if you apply it to a separate computer, it is equivalent to a local log file system, and enjoy the
No matter what program can be perfect, theoretically, any program has a Core Dump day, the formal operation of the program, especially the server program, once the Core Dump, the consequences are unimaginable, if you have experience in server
In the "Linux file command proficiency Guide (I)", we discussed the basic information required to take advantage of the most basic and commonly used Linux file commands. In this article, I will discuss Linux system commands in the same way.
In the
Chapter 2: Red Hat Linux 3rd Basics
3.1 log on to and exit the system
1. Start the systemGenerally, LILO is installed on MBR. After the computer is started, the Program on MBR is executed, and a non-pretty figure will appear: A Red Hat image on the
The options are described as follows:
-C comment specifies an annotation description.
-D directory specifies the user's main directory. If this directory does not exist, you can use the-m option to create a main directory.
-G User Group specifies
According to the phpinfo information, the iconv module has been correctly loaded.
Google. It turns out that the iconv method in linux is still a bit problematic.
The solution provided by a user on csdn is:
View sourceprint? One way is to change
There are two ways to implement website load: one is to purchase hardware, for example, hardware F5 and then Citrix Netscalar. These devices are hundreds of thousands, which are not common users, the other is implemented using software, such as
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