- 博客(15)
- 资源 (12)
- 收藏
- 关注
原创 编译代码时出现/usr/include/boost/type_traits/detail/has_binary_operator.hp:50: Parse error at "BOOST_JOIN"错
编译代码时出现/usr/include/boost/type_traits/detail/has_binary_operator.hp:50: Parse error at "BOOST_JOIN"错误 临时解决方法: 修改/usr/include/boost/type_traits/detail/has_binary_operator.hpp文件 将namespace BOOST_
2017-01-17 13:50:59
7315
9
原创 linux安装python2.7.11
1、下载地址http://www.python.org/download/ 2、tar xf Python-2.7.11.tgz cd Python-2.7.11 ./configure --prefix=/usr/local/python2711 make -j3 make install 3、改变系统中的python链接指向 rm -f /usr/bin/python ln -
2016-06-04 16:35:43
1311
原创 php file_put_contents时出现Permission denied的警告
ecshop移植到别的服务器时,运行界面出现许多如下警告信息:Warning: file_put_contents(D:/wanz/temp/caches/f/index_40F756F0.php) [function.file-put-contents]: failed to open stream: Permission denied in D:\wanz\includes\cls_templ
2016-06-03 10:47:44
3610
原创 php中使用redis
1、下载 redis:http://redis.io/download phpredis:https://github.com/phpredis/phpredis 2、安装 $ wget http://download.redis.io/releases/redis-3.2.0.tar.gz $ tar xzf redis-3.2.0.tar.gz $ cd redis-3.2
2016-05-27 10:57:42
666
原创 redis Uncaught exception RedisException: Redis server went away
运行php redis中的函数的时候出现 PHP Fatal error: Uncaught exception 'RedisException' with message 'Redis server went away' in /var/www/html/2.php:7 错误 原因: 系统中selinux的问题,selinux禁止了httpd对外访问的权限,打开即可
2016-05-26 16:44:13
5614
原创 交叉编译 环境 流程
1、下载交叉编译链组件 https://releases.linaro.org/components/toolchain/binaries/4.9-2016.02/ 2、本机下载glibc-2.14源码,编译,安装(上面的交叉编译链至少需要glibc-2.14版本) wget http://ftp.gnu.org/gnu/glibc/glibc-2.14.tar.xz mkdir /u
2016-04-28 09:15:03
891
原创 /usr/bin/ld: client: hidden symbol `__dso_handle' in /usr/lib/gcc/i486-linux-gnu/4.4.3/crtbegin.o is
编译源代码时出现错误 /usr/bin/ld: client: hidden symbol `__dso_handle' in /usr/lib/gcc/i486-linux-gnu/4.4.3/crtbegin.o is referenced by DSO /usr/bin/ld: final link failed: Nonrepresentable section on output
2016-04-22 17:15:36
2780
原创 php move_uploaded_file执行失败
在各种php环境配置正确的情况下,move_uploaded_file函数总是执行失败 很可能的原因之一: 服务器开启了selinux,导致不能移动文件 关闭: setenforce 0 查看:getenforce
2016-04-19 11:01:43
1809
原创 linux svn环境搭建
http://www.centoscn.com/CentosServer/ftp/2014/0306/2505.html 1、编辑svnserv.conf时,anon-access = none前面不能留有空格,否则出现expect options错误 2、svnserve -d -r /var/svn/repo1 3、创建svn工作目录 mkdir svn cd svn sv
2016-04-16 12:35:36
308
原创 mysql忘记root密码
redhat系列忘记mysql密码 解决方法: 1、停止mysql服务 #service mysqld stop 2、 #mysqld_safe --skip-grant-tables& 3、#mysql -u root mysql 4、mysql> update user set password=PASSWORD("newpassword") WHERE user='root';
2016-04-16 11:29:26
286
原创 phpmyadmin
在浏览器中打开phpMyAdmin时出现 The mbstring extension is missing. Please check your PHP configuration 解决方法: redhat系列 - yum install php-mbstring 然后重启apache服务器 service httpd restart 重新访问即可
2016-04-16 11:15:34
324
转载 Ubuntu11.04 开机启动菜单 删除多余的内核(旧版本) 调整不同操作系统的启动顺序
很多用户一般都会选择Windows + Ubuntu的双系统。用得时间久了,随着Ubuntu内核的不断升级,开机启动菜单会变得越来越臃肿。下面简单介绍一下如何删除开机启动菜单多余的内核(旧版本),以及如何调整不同操作系统的启动顺序。 Ubuntu是由grub引导启动的。每当Ubuntu升级到新的版本后,grub会自动调整开机启动菜单的顺序,把新的内核放在启动菜单的开始,同时也不会删除久的内核版本
2013-03-05 16:00:42
681
转载 Linux下C/C++调试工具GDB
实例调试程序 main.c : #include int add_range(int low, int high) { int i, sum; for (i = low; i sum = sum + i; return sum; } int main(void) { int result[100]; result[0] = add_range(1, 10);
2013-01-23 14:08:36
426
原创 linux-2.6.32内核中部分结构体
1、struct task_struct: /usr/include/linux/sched.h struct task_struct { volatile long state; /* -1 unrunnable, 0 runnable, >0 stopped */ void *stack; atomic_t usage;
2012-05-12 19:00:04
649
原创 java
<br />在Java文件中获取request的方法:<br /> <br /> HttpServletRequest request = ServletActionContext.getRequest();<br /><br /><br />
2010-10-29 21:26:00
334
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅