When using a fopen or socket in a PHP program, report the error:
Php_network_getaddresses:getaddrinfo failed:temporary failure in name.
My code is as follows
$handle = fopen ("http://www.baidu.com/", "R");
echo "Handle:". $handle;
This means
Nginx as an up-and-comer, his charming place has let a lot of people put into his embrace. Simple configuration, simple implementation principle. It's a good thing to do a load balance.
I. The dependent procedure1. Gzip module requires zlib library2
The tail command is also a very commonly used file View Class command, today to introduce the use of the Linux Tail command.
More Linux command details see: Linux Command Quick Search manual
The Linux Tail command is primarily used to write files
Write a script to sign in, but do not want to always in the time to check in the database, otherwise the record in the data base is too fake, so you need to determine the time period, randomly selected time to execute, finally thought of using
Summary
FTP is one of the commonly used software under Liunx.
1. Switch the user to root:su - ;
2. Check if the machine has been installedftp:rpm -qa|grep vsftpd;
If no results are returned, the installation is not installed, and if the package
Method One:
First you need to limit the IP that you log on (or if you need to log on locally, view the last login IP)
Vim/etc/hosts.allow
InputSshd:114.80.100.159:allow
Vim/etc/hosts.deny
Input (indicates that other IP is denied access to
Sometimes the leader will ask you how many cores a server is, how many threads, is not will be Meng, the following teach you how to see Cpuinfo
1, view the number of CPUs:
# Cat/proc/cpuinfo | grep ' Physical ID ' | Sort-u
2, view the number of
First, Experiment 1: Set the grub password
1, to generate a cryptographic operation of "Nd5" password
2, set the grub password
3. Test if GRUB is encrypted
4, in the virtual machine in the graphic interface of the following figure,
Overview
If you want to have shared memory support in the APACHE/EAPI, you need to set up a mm shared memory library. In this case, it will allow mod_ssl to use an efficient RAM-based session cache instead of a disk-based session cache.
Attention
People who have done a little bit larger projects know that the stability of the program and the convenience of scheduling, the use of a large number of threads, almost every module has a dedicated thread processing functions. The mutual exclusion
Dynamically view memory usage for a process
Copy Code code as follows:
1. Top commandtop-d 1-p pid [, pid ...]//set to delay 1s, default is delay 3s
If you want to sort by memory usage, you can shift + m (sort by memory usage)
In Linux, modify the MAC address
# Ifdown Eth0
# ifconfig eth0 hw ether 12:34:56:78:90:12
(The modified MAC address is different from the original address)
# ifup Eth0 (modified successfully)
After, with the # Ifconfig view, MAC address changed, but
In the Linux environment, the Nginx load balancing is configured, because the cache mechanism may not be configured successfully in the configuration file nginx.conf of the virtual host, resulting in the page not refreshing and still displaying the
1, the system environment as follows:
2, for the system to add a new virtual hard disk, add the need to restart the virtual machine, otherwise the system is not recognized; The following figure,/DEV/SDC is a newly added hard disk;3. FDISK/DEV/SDC
Print all communication packets between the local host and the host on the Berkeley Network (Nt:ucb-ether, which is understood as the network address of the ' Berkeley Network '), the most original meaning of which is to print all packets with a
Here is a introduction to Linux boot automatic startup of several methods, a total of 3 kinds, we can learn from! Experience with CentOS 5.3 System for example!
Method 1: Using the NTSYSV command to set up, using root login
Enter NTSYSV carriage
Sometimes we need Linux to load certain scripts or system services automatically when the system is powered on.
This is done mainly in three different ways:
ln-s Establish a soft link for the/etc/init.d/service in the/ETC/RC.D/RC*.D directory (*
To start the graphical interface:#startx &Adjust language to Chinese (Medium character encoding)#localectl-H View Help#localectl List-locales to see what languages are available#localectl Set-locale Lang=zh_cn.utf8#locale View the current language
1.Virtual MemoryVm.swappiness=1 # A percentage of how likely the VM subsystem are to use swap spaceVm.dirty_background_ratio=5 # The value is a percentage of the total amount of system memoryVM.DIRTY_RATIO=60~80 # A percentage of total system
0. Download Jdk8Login URL: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.htmlSelect the corresponding JDK version to download. (Can be shared to Linux via folder after download is completed under Windows)1. Log in to
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