dnsServer establishment
1.Install bind to build DNS server
yum install bind -y
2.Install and modify the configuration file: VIM /etc/named.conf
Modification:
listen-on port 53 { 192.168.1.145; }; Here IP is the server host IP.
#allow-query { localhost; };
Specify DNS parsing:
vim /etc/named.conf Add new analytic domain
zone “simplexue.com” IN {
type master; Main resolution: Master
file “simplexue.com.z...
1.Install additional software sources EPEL and nux-dextop
rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm
rpm -Uvh http://ftp.sjtu.edu.cn/fedora/epel//RPM-GPG-KEY-EPEL-7
2.Install required files
yum -y --enablerepo=nux-dextop install gstreamer-ffmpeg vlc gstreamer-plugins-ugly gstreamer-plugins-bad gstreamer-plugins-ugly ffmpeg libvdpau mpg123 mplayer mplayer-gui gstreamer-plugins-bad-nonfree gstreamer1-libav gstreamer1-plugins-bad-freeworld gstreamer1-plugins-ugly
ps:Some of them may be installed when the system is installed, and the ins...
Introduction to BroadcastReceiver
BroadcastReceiverIs one of the four components to complete communication between components or applications.
Broadcast: Radio broadcast
BroadcastReceiver: Broadcast receivers
A radio and broadcast receiver completes a message mechanism at the weight level because it needs to activate the component.
Two attention
Every time a broadcast message arrives in Android, an instance of BroadcastReceiver is created and the onReceive () method is executed
onReceive()After execution of the method, the instance of BroadcastReceiver will be destroyed.
onReceive()Method ...
int count = 0 ; int num = 0 ; int i ; for (i = 0 ; i <= 100; i++){ num +=i;// countFirst assign, each assignment is 0, after + +, intermediate buffer variable mechanism. count = count++ ;//Running count++ is valid value every time.// count++;
System.out.println(num+ "*" + count +" = "+ count * num ); } System.out.println( "Finally: "+ count * num";Running result
One.Put method
Case 1:
Click on the topputEnter the underneath
The first step is to get the hashCode value first.
The second step is to get the hash value according to the hashCode value.
The third step is to get a subscript i from the hash value.
The above code is as follows:
The results are as follows:
The fourth step: traversing the hash bucket of the subscript location.
The fifth step is to make a substitution if the reference is equal or equals equal.
2.Click on the tophashEnter the underneath
3.Be...
Servlet