- 博客(3)
- 资源 (3)
- 收藏
- 关注
原创 CentOS 7 设置静态IP
今天,公司弄来了一台新服务器作为GIT服务器用,为了免去将来经常寻址,故将IP设置为静态的,网络上也有一些解决方案,不过有时候会造成改完静态IP之后内网能访问到服务器,而服务器无法上外网的情况。 究其原因,是因为只修改了vi /etc/sysconfig/network-scripts/ifcfg-xxx 中的DNS 而没有修改 /etc/resolv.conf 中的DNS 修改这两个地方,
2015-11-19 14:24:53 236
原创 Cast from pointer to smaller type 'int' loses information解决方案
要适配amr64了,结果好多第三方库出了问题 searchPosMallocArray.Append(&searchPosMallocArray,(int)searchPosMalloc); 这句话报了Cast from pointer to smaller type 'int' loses information的错 如果指针是64位和整数都是32位的,一个int是太小,无法容纳一个指
2015-03-07 11:09:42 6228 1
原创 设置UIToolbar的背景图
//顶部显示bar topBar=[[UIToolbar alloc]initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, 44)]; if ([[[UIDevice currentDevice] systemVersion] floatValue] > 4.9) {
2012-12-14 10:31:48 729
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人