随笔分类 - Linux
摘要:1、查看占用内存最多的十个进程 ps aux|head -1;ps aux|grep -v PID|sort -rn -k +4|head 2、查看占用 cpu 最多的十个进程 ps aux|head -1;ps aux|grep -v PID|sort -rn -k +3|head ———————
阅读全文
摘要:首先 yum install gcc 安装完成后 gcc -o 指定文件名 文件(gcc -o hello hello.c) 另外 对pthread_create未定义的引用 pthread库不是Linux系统默认的库,连接时需要使用库libpthread.a,在编译中要加-lpthread(放在命
阅读全文
摘要:[root@server ~]# useradd chenjiafa //添加一个名为chenjiafa的用户 [root@server ~]# passwd chenjiafa //修改密码 Changing password for user chenjiafa. New UNIX passwo
阅读全文
摘要:今天下午想装点东西。。 突然发现所有的6 yum源都失效了 YumRepo Error: All mirror URLs are not using ftp, http[s] or file. Eg. Invalid release/repo/arch combination/removing mi
阅读全文
摘要:一、软件安装方法1)APT方式a.普通安装:apt-get install softname1 softname2 …;b.修复安装:apt-get -f install softname1 softname2... ;(-f Atemp to correct broken dependencies
阅读全文