[root@centos7 network-scripts]# ifconfig
# 结果
br0: flags=4163 mtu 1500
inet 192.168.0.102 netmask 255.255.255.0 broadcast 192.168.0.255……
ens33: flags=4163 mtu 1500
ether 00:0c:29:47:ec:83 txqueuelen 1000 (Ethernet)……
lo: flags=73 mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10……
virbr0: flags=4099 mtu 1500
inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255
ether 52:54:00:ab:d0:6c txqueuelen 1000 (Ethernet)……
# 查看网络
brctl show
# 显示如下
bridge name bridge id STP enabled interfaces
br0 8000.000c2947ec83 no ens33
virbr0 8000.525400abd06c yes virbr0-nic
# 到此,先ping下百度,如果通,表示配置正确
报错:
cat /var/log/messages | grep "libssl"
# libssl错误
version libssl.so.10 not defined in file libssl.so.10 with link time reference
# 升级
yum install -y openssl-1.0.2k*
/*
*处理例外
*/
--例外简介
--处理例外-传递例外
declare
v_ename emp.ename%TYPE;
begin
SELECT ename INTO v_ename FROM emp
where empno=&no;
dbms_output.put_line('雇员名:'||v_ename);
exceptio
import java.util.ArrayList;
import java.util.List;
public class KickOutBadGuys {
/**
* 题目:13个坏人和13个好人站成一圈,数到7就从圈里面踢出一个来,要求把所有坏人都给踢出来,所有好人都留在圈里。请找出初始时坏人站的位置。
* Maybe you can find out
Redis.conf配置文件及相关项说明
# Redis configuration file example
# Note on units: when memory size is needed, it is possible to specifiy
# it in the usual form of 1k 5GB 4M and so forth:
#
public static String convertInputStreamToString(InputStream is) {
StringBuilder result = new StringBuilder();
if (is != null)
try {
InputStreamReader inputReader = new InputStreamRead
原文:
http://www.sitepoint.com/3-new-javascript-apis-may-want-follow/?utm_source=html5weekly&utm_medium=email
本文中,介绍3个仍然处于草稿阶段,但应该值得关注的Javascript API.
1) Web Alarm API
&