Category Archives: linux

Disk Partitioning With fdisk Linux分区

Reference: http://www.liquidweb.com/kb/disk-partitioning-with-fdisk-2/ 1. 显示 disk 信息 命令: fdisk -l 或: parted -l (以G为单位进行显示) 或: df -h 2. 选择目标disk 命令: fdisk /dev/sda 名称可能因disk而异 3.... Read More | Share it now!

linux的hostname修改详解

Linux操作系统的hostname是一个kernel变量,可以通过hostname命令来查看本机的hostname。也可以直接cat /proc/sys/kernel/hostname查看。 #hostname #cat... Read More | Share it now!

centos6.5 transparent huge pages怎么关闭

vi /etc/grub.conf kernel项增加 transparent_hugepage=never 例如: title Red Hat Enterprise Linux (2.6.32-431.el6.x86_64) root (hd0,0) kernel /vmlinuz-2.6.32-431.el6.x86_64 ro root=/dev/mapper/VolGroup-lv_root ... Read More | Share it now!

Error: no such table: filelist

https://ask.fedoraproject.org/en/question/10639/yum-upgrade-leads-to-error-no-such-table-filelist/   yum clean all ... Read More | Share it now!

linux yum命令详解

linux yum命令详解 yum(全称为 Yellow dog Updater,... Read More | Share it now!

Install Java 1.7_67 on Linux

Install Java with yum on Centos: $ yum install java-1.7.0-openjdk java-1.7.0-openjdk-devel Install Java with yum on Debian: su - echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main" | tee... Read More | Share it now!

linux 查看端口命令

linux 查看端口命令   netstat -an 查看网络端口 netstat -an |grep -w 21   lsof -i :port,使用lsof -i :port就能看见所指定端口运行的程序,同时还有当前连接。 lsof -i :1521   nmap 端口扫描 ... Read More | Share it now!

个人经验分享:nohup?screen?tmux?谁来保证我的远程会话?

>nohup 说到这个工具,不管是unix还是linux上面都用到,常作为简单的终端复用命令,我们这里简单的演示下 我们常常在管理远程服务器的时候特别是这些unix-like系列的系统都会用到ssh远程登录,但是我们有时候例如要装一个mysql编译的时候,如果突然网络中断….我想你想死的新都有了….你可能会认为服务器会帮我们安装的……其实不会嗯服务器当发现网络终端会发送一个SIGHUP的指令此时你的mysql进程也会被结束掉…..我们来看下原理 我刚刚又用SSH连接了一个会话,此时我们可以用ps... Read More | Share it now!

Linux如何查看进程、杀死进程、启动进程等常用命令

关键字: linux 查进程、杀进程、起进程 1.查进程 ps命令查找与进程相关的PID号: ps a 显示现行终端机下的所有程序,包括其他用户的程序。 ps -A 显示所有程序。 ps c... Read More | Share it now!

centos提示database disk image is malformed解决方法

在执行yum更新,即运行 yum update 命令时,提示以下错误: Error:database disk image is... Read More | Share it now!