
服务器【Ubuntu/Redhat】
朱乐乐在路上
Smile as always
展开
-
yum 重复安装问题
** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:python-2.6.6-37.el6_4.x86_64 is a duplicate with python-2.6.5-3.el6.x86_64----------------------------------------重转载 2015-01-29 10:08:41 · 13416 阅读 · 0 评论 -
CPU 出现soft lockup的解决办法
近期在服务器跑大量高负载程序,造成cpu soft lockup。如果确认不是软件的问题。采用下面的解决办法。echo 30 > /proc/sys/kernel/watchdog_thresh原创 2015-06-14 19:29:55 · 45181 阅读 · 4 评论 -
为x86 64体系结构添加系统调用
转载自http://blog.chinaunix.net/uid-23024886-id-2570340.html之前,为32位的x86添加系统调用。现在因为研究的需要,要在64位的x86添加一个系统调用。STEP 1: 在arch/x86/include/asm/unistd_64.h,添加#define __NR_test1 300__SYS转载 2015-06-14 14:37:09 · 867 阅读 · 0 评论 -
测量系统调用开销
https://courses.cs.washington.edu/courses/cse551/07sp/programming/assign1/measure_syscall.c// Copyright 2007 Steven Gribble#include #include #include #include #include #include // only转载 2015-06-10 10:30:16 · 855 阅读 · 0 评论 -
tar
转载自http://www.xiaoxiaozi.com/2009/05/23/600/压缩成gzip文件:tar -zcvf shell.tar.gz shell/将gzip文件解压:tar -zxvf shell.tar.gz压缩为bz2文件:tar -jcvf shell.tar.bz2 shell/将bz2文件解压:tar -jxvf转载 2015-05-07 13:13:06 · 433 阅读 · 0 评论 -
使centos6.x登陆之前就能联网
发现centos6.x机器开机不能自动把网络打开,导致我ssh不上去,每次还要自己去到机器上登陆,这样远程就没法重启了。所以survey如下:vim /etc/sysconfig/network-scripts/ifcfg-System_eth0 下面这一项BOOTPROTO的默认值是none,直接改成staticBOOTPROTO=static保存即可原创 2015-04-29 22:41:53 · 833 阅读 · 0 评论 -
redhat查看处理器各核的使用情况
mpstat 2 5 Display five reports of global statistics among all processors at two second intervals.mpstat -P ALL 2 5 Display five reports of statistics for all proces原创 2015-03-04 20:56:15 · 1117 阅读 · 0 评论 -
scp使用
Linux scp命令用于Linux之间复制文件和目录,具体如何使用这里好好介绍一下,从本地复制到远程、从远程复制到本地是两种使用方式。这里有具体举例:==================Linux scp 命令==================scp 可以在 2个 linux 主机间复制文件;命令基本格式:scp [可选参数] file_sour转载 2015-01-20 18:03:28 · 547 阅读 · 0 评论 -
保证服务器不关闭ssh连接
平时我们通过终端连接服务器时,当鼠标和键盘长时间不操作,服务器就会自动断开连接,我们还的需要重新连接,感觉很麻烦,总结一下解决此问题的方法方法一、修改/etc/ssh/sshd_config配置文件,找到ClientAliveCountMax(单位为分钟)修改你想要的值,执行service sshd reload转载 2015-01-18 21:45:09 · 1433 阅读 · 0 评论 -
For beginners: ubuntu上源码编译之前要做的工作
When I compile a software project from scratch - I normally start with installing the build dependencies for the version there is included in Ubuntu by doing:sudo apt-get build-dep qemuThat ens转载 2015-01-18 19:50:54 · 496 阅读 · 0 评论 -
修改sshd_config解决 xshell 链接 linux 错误 connection closed by foreign host
用xshell连接服务器总是报错 connection closed by foreign host,害的我一个程序pao原创 2014-10-24 11:12:48 · 52526 阅读 · 8 评论 -
ubuntu添加本地源
一、在自己的根目录下建立一个目录,用于放所有下载的软件包,目录名随自己喜欢,建议新手在自己的根目录下进行以下操作,以避免操作权限问题的困扰。mkdir ~/ packs拷贝过来发现在packs当中为文件都是root账户的,需要修改修改所有者sudo chown -R enadmin.enadmin * 修改权限sudo chmod ug+rw转载 2014-10-22 09:08:57 · 5041 阅读 · 0 评论 -
自己编译gcc遇到的小问题cannot find crt1.o
其实之前已经编译很多次gcc,都没有问题但是这次在64位Ubuntu虚拟机里面编译遇到了一些问题。简单记录一下。config的log里面报错是cannot find crt1.o这个直接想到是路径不对,找不到,但是做了符号链接还是找不到。后来发现有这么一句话checking ABI=32 这意味着这样配置编译出来的二进制ELF一定都是32位的,怪不得这时候后来报的说原创 2017-04-01 10:55:36 · 28392 阅读 · 3 评论