摘要:
环境: 系统:Win7 64 vs:2015 Boost:1.62 Boost下载:这里 (boost_1_62_0.7z ,2016-09-28, 71.9 MB) 进入cmd(不要选错): 进入boost根目录路径执行命令: 注意这里生成的是MTd和MT。MD的话runtime-link=sha 阅读全文
摘要:
每次调试都是先PS x|grep xxxx ,然后gdb attach pid ,太麻烦了!写了个烂脚本给自己减负~~~ 1 #!/bin/bash 2 3 #check num of argv 4 5 if [[ $# -ne 1 ]]; then 6 echo 'err: argv num!' 阅读全文
摘要:
security = user passdb backend = smbpasswd smbpasswd file = /etc/samba/smbpasswd pam password change = yes #idmap uid= 167777216-33554431 #idmap gid= 阅读全文
摘要:
#!/bin/bash rpm -aq|grep yum|xargs rpm -e --nodeps wget http://mirrors.aliyun.com/centos/6/os/x86_64/Packages/yum-3.2.29-69.el6.centos.noarch.rpm wget 阅读全文
摘要:
早上碰到服务器数据异常,查找日志没有发现。当前数据在db中,无解。好在mysql有记录,不多就1天。 操作步骤: mysql --help |grep mysql.cnf 显示如下 /etc/my.cnf /var/lib/mysql/my.cnf ~/.my.cnf 因mysql日志... 阅读全文
摘要:
baidu一堆blog讲解怎么装。搞烦了,直接google,终于解决怎么安装了!自己太菜了,baidu太坑了~~ 参考url:https://github.com/vinodpandey/blog/blob/master/vim7.3-centos-with-python-2.7.3-supp... 阅读全文
摘要:
进入源路径,备份下cd /etc/yum.repos.d/mv rhel-debuginfo.repo rhel-debuginfo.repo_bak 阿里巴巴源镜像地址http://mirrors.aliyun.com/ 下载相应系统的help中的系统版本。 因我使用的redhat5,所以命令如... 阅读全文
摘要:
新建系统Redhat5,字体格式异常,修改如下: 服务器修改: vim /etc/sysconfig/i18n vim /etc/profile 末尾增加(修改完成后执行 source /etc/profile ) vim ~/.vimrc 客户端: SecurtCRT使用默认格式即可! 阅读全文
摘要:
如何修改Centos yum源--------------------------------------国内yum源:163和搜狐的yum源。本文章介绍的yum源支持的版本是CentOS 5系列,理论上支持RHEL5系列。更新方法如下:先进入yum源配置目录cd /etc/yum.repos.d备... 阅读全文