1. 修改配置文件vim /etc/ssh/sshd_config修改 #Port 22 这行, 去掉 # 修改后面的端口号 例如 Port 2123重启sshd服务/etc/init.d/sshd restart2. 修改防火墙配置vim /etc/sysconfig/iptables可以参照已有...
分类:
其他好文 时间:
2014-08-01 18:38:22
阅读次数:
249
错误举例:
..\..\Libraries\STM32_USB-FS-Device_Driver\inc\usb_type.h(21): error: #5: cannot open source input file "usb_conf.h": No such file or directory
这是因为没有设置 STM32 固件库的目录, 编译器就默认到 “Keil”根目录下的某某目录找...
分类:
其他好文 时间:
2014-08-01 16:07:51
阅读次数:
294
当一个视图控制器被创建,并在屏幕上显示的时候。 代码的执行顺序
1、 alloc 创建对象,分配空间
2、init (initWithNibName) 初始化对象,初始化数据
3、loadView 从nib载入视图 ,通常这一步不需要去干涉。除非你没有使用xib文件创建视图
...
分类:
移动开发 时间:
2014-08-01 16:05:51
阅读次数:
253
从配置菜单关闭防火墙是不起作用的,索性在安装的时候就不要装防火墙 查看防火墙状态: /etc/init.d/iptables?status 暂时关闭防火墙: /etc/init.d/iptables?stop 禁止防火墙在系统启动时启动 /sbin/chkconfi...
分类:
系统相关 时间:
2014-08-01 14:00:04
阅读次数:
268
在python2.x中,从object继承得来的类称为新式类(如class A(object))不从object继承得来的类称为经典类(如class A())新式类跟经典类的差别主要是以下几点: 1. 新式类对象可以直接通过__class__属性获取自身类型:type 2. 继承搜索的顺序发生了.....
分类:
编程语言 时间:
2014-08-01 13:17:41
阅读次数:
334
A simulation problem. We simple walk through all reachable items until we cannot proceed.class Solution {public: bool canJump(int A[], int n) { ...
分类:
其他好文 时间:
2014-08-01 13:16:01
阅读次数:
180
第一种方式: MyViewController *my=[[MyViewController alloc] init]; [self.navigationController pushViewController:my animated:NO]; //因为一个事件循环机制中 ...
分类:
其他好文 时间:
2014-08-01 13:12:01
阅读次数:
142
在centos x64 上安装openfire,运行/etc/init.d/openfire start后发现服务器没法开启,查看log日志:nohup: failed to run command `/opt/openfire/jre/bin/java': No such file or dire...
分类:
其他好文 时间:
2014-08-01 04:48:11
阅读次数:
182
python的正则与网页操作练习二:importre
importurllib.request
#51ctourlcode=gb18030
classdown51web:
s_url=‘‘
s_blogid=‘‘
s_blogpages=‘‘
s_html=‘‘
s_code=‘‘
def__init__(self,url,code):
self.s_url=url
self.s_code=code
defget_html(self):
self.s_html=urllib.r..
分类:
编程语言 时间:
2014-08-01 00:14:21
阅读次数:
334
在linux系统下长时间进行性能测试,连续几次发现服务器假死无法连接上的情况,无奈只能重启服务器。在测试路径下发现hs_err_pid17285.log文件,打开文件查看其主要内容如下:# There is insufficient memory for the Java Runtime Environment to continue.# Cannot create GC thread. Out...
分类:
编程语言 时间:
2014-07-31 23:57:00
阅读次数:
641