安装离线源服务器 安装一个http服务器 # yum install httpd 编辑httpd.conf文件,搜索"#ServerName",添加ServerName localhost:80 vi /etc/httpd/conf/httpd.conf 启动 # httpd 停止 # httpd ...
分类:
其他好文 时间:
2017-06-06 16:59:00
阅读次数:
272
1、关闭firewall: systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 2、安装iptables防火墙 #安装 yum install iptable ...
分类:
其他好文 时间:
2017-06-06 15:56:34
阅读次数:
218
Input: 第一行为两个正整数n,m 第二行为n个整数a1..an 最后一行为一个正整数k Output: 为一个整数,代表方案数对1000000007取模的值 Sample Input Sample Output 来自毛爷爷17年论文 Berlekamp-Massey Algorithm直接开算 ...
分类:
其他好文 时间:
2017-06-05 23:54:23
阅读次数:
264
一、Memcached 存在问题 Memcached 用于数据库内存缓存时存在一个问题,即 Memcached 进程退出时,Memcached 里面的数据会全部丢失,这样就算 Memcached 重新启动了,Memcached 缓存里也没有数据,而这会造成所有用户同时访问数据库,从而导致数据库撑不住 ...
分类:
系统相关 时间:
2017-06-05 12:41:57
阅读次数:
197
public static void memcpy(Integer src, ByteBuffer buffer, Integer size){ if(size > 4){ size = 4; } for(int i = 0; i >(3-i))*8) & 0xff);; buffer.put(te... ...
分类:
编程语言 时间:
2017-06-04 22:45:28
阅读次数:
367
GPU的内存按照所属对象大致分为三类:线程独有的、block共享的、全局共享的。细分的话,包含global, local, shared, constant, and texture memoey, 我们重点关注以下两类内存 Global memory Global memory resides i ...
分类:
其他好文 时间:
2017-06-04 12:43:20
阅读次数:
973
上下文菜单@Overrideprotected void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);setContentView(R.layout.menu);TextView tv=(TextVi ...
分类:
其他好文 时间:
2017-06-04 00:17:36
阅读次数:
184
http://blog.csdn.net/garyye/article/details/4788070 http://blog.csdn.net/garyye/article/details/4788070 在使用VS进行托管应用程序的调试的时候,有的时候总感觉有些力不从心。譬如查看一个托管堆或者计 ...
分类:
数据库 时间:
2017-06-03 20:15:32
阅读次数:
306
一 、什么是SHELL shell一般代表两个层面的意思,一个是命令解释器,比如BASH,另外一个就是shell脚本。本节我们站在命令解释器的角度来阐述shell 二 、命令的优先级 命令分为: ==> alias ==> Compound Commands ==> function ==> bui ...
分类:
系统相关 时间:
2017-06-02 17:30:11
阅读次数:
231