1,先说明下, 这种方式仅针对 RTL8723BE这款无限网卡。 先用 lspci|grep -i net 先用这个命令查询网卡型号, 我的电脑查询结果: 00:19.0 Ethernet controller: Intel Corporation Ethernet Connection I218- ...
分类:
系统相关 时间:
2016-12-22 20:20:30
阅读次数:
234
支持Oracle、MSSQL、MySQL、SQLite四种数据库,支持事务,支持对象关系映射;已在多个项目中实际使用。 没有语法糖,学习成本几乎为0,拿来即用。 DBHelper类完整代码: using System; using System.Collections.Generic; using ...
分类:
数据库 时间:
2016-12-22 20:07:19
阅读次数:
305
syslog服务:syslogd:系统日志服务,非内核产生的信息klogd:内核日志服务,专门负责记录内核产生的日志信息servicesyslogrestart重启日志服务servicesyslogreload不重启日志服务使得日志服务配置文件立即生效配置文件:/etc/syslog.conf配置文件格式:facility.priorityactio..
分类:
系统相关 时间:
2016-12-22 15:18:46
阅读次数:
463
一、描述拿到一批机器,需要做首先是修改ssh端口,防火墙配置,以及limits.conf控制文件描述符,进程数,栈大小等。二、剧本如下:---
-hosts:"{{host}}"
remote_user:"{{user}}"
gather_facts:false
tasks:
-name:Modifysshport69410
lineinfile:
dest:/etc/ssh/{{item}}
reg..
分类:
其他好文 时间:
2016-12-22 15:17:28
阅读次数:
1882
public static void Register(HttpConfiguration config) { // Web API configuration and services var cors = new EnableCorsAttribute("*", "*", "*"); confi ...
1.mapValus(fun):对[K,V]型数据中的V值map操作(例1):对每个的的年龄加2 object MapValues { def main(args: Array[String]) { val conf = new SparkConf().setMaster("local").setA ...
分类:
其他好文 时间:
2016-12-22 11:39:59
阅读次数:
227
1、假如apache的配置文件httpd.conf同时加载libphp5.so和libphp7.so 2、如图所示,modules下同时存在libphp5.so/libphp7.so 3、启动apache,遇到下列错误 4、解决办法就是卸载php5;yum remove php;因为我是yum方式安 ...
分类:
Web程序 时间:
2016-12-22 11:33:10
阅读次数:
618
原文:http://www.cnblogs.com/xdp-gacl/p/4264301.html 一、连接数据库的配置单独放在一个properties文件中 之前,我们是直接将数据库的连接配置信息写在了MyBatis的conf.xml文件中,如下: 其实我们完全可以将数据库的连接配置信息写在一个p ...
分类:
其他好文 时间:
2016-12-22 11:22:41
阅读次数:
225
1.得到原本的镜像地址 npm get registry > https://registry.npmjs.org/ 设成淘宝的 npm config set registry http://registry.npm.taobao.org/ 2.换成原来的 npm config set regist ...
分类:
其他好文 时间:
2016-12-22 11:09:42
阅读次数:
171
先安装pptpd: 编辑 /etc/pptpd.conf 编辑 /etc/ppp/pptpd-options 添加账号密码;编辑/etc/ppp/chap-secrets,格式如下: 编辑/etc/sysctl.conf 使iptables修改生效 重启pptp iptables配置如下: ...
分类:
其他好文 时间:
2016-12-22 07:06:05
阅读次数:
239