![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux
zhajianc
这个作者很懒,什么都没留下…
展开
-
The Linux server failed to restart since /etc/fstab error
1. Login the server with single user mode2. remount the / partion# mount -o remount,rw /3. Edit the /etc/fstab and remove comment the error line4. verify with "mount -a" command5. reboot the原创 2015-09-09 10:50:00 · 318 阅读 · 0 评论 -
vmstat samples
virtual memory Monitoring ---- vmstatvmstat fields description:Procs – r: Total number of threads/processes waiting to run. The amount of threads in the run queue. These are threads that a原创 2015-09-16 15:39:21 · 323 阅读 · 0 评论 -
netstat samples
network monitoring: netstat List All Ports# netstat -anList Sockets which are in Listening State# netstat -lShow the statistics for each protocol#netstat -sDisplay PID and原创 2015-09-16 15:41:18 · 369 阅读 · 0 评论 -
用iptables做路由
Machine A: 192.168.200.10Machine B: 192.168.198.50Iptables Machine: eth0 192.168.200.11 eth1 192.168.198.111. Machine A(windows): route -p add 192.168.198原创 2015-09-16 16:18:21 · 498 阅读 · 0 评论 -
linux screen samples
1. de-attach the running screenCTRL-A + "d"2. list the attached/de-attached screenscreen -ls3. re-attach a screenscreen -r4. activate the loging of screenscreen -l # when starting scree原创 2015-09-16 15:21:05 · 345 阅读 · 0 评论 -
apache URL 区别大小写
1. enable the model: mod_speling.so2. add the "CheckSpelling on" into httpd.conf原创 2015-09-18 11:51:38 · 1089 阅读 · 0 评论 -
snmptrap 命令解析
example:# snmptrap -v 2c -c public 10.10.12.219 "aaa" 1.3.6.1.4.1.2345 SNMPv2-MIB::sysLocation.0 s "just here" snmptrap命令-v 2cSnmp协议版本-c public共同体10.10.12.原创 2015-09-18 11:55:40 · 9172 阅读 · 0 评论 -
把cdrom变为yum repository
1. mount /dev/cdrom /mnt2. cd /mnt3. createrepo .4. change /etc/yum.repos.d[LocalRepos]name=LocalReposbaseurl=file:///mnt/enabled=1原创 2015-09-23 16:40:10 · 402 阅读 · 0 评论 -
Recovering an overflowed LVM volume configured with –virtualsize
edit the -cow file directly with a short perl script. The 5th byte is the ‘valid’ flag (see http://www.redhat.com/archives/linux-lvm/2006-September/msg00132.html) so all we need to is set it to ‘1’: ...转载 2018-05-29 14:54:18 · 179 阅读 · 0 评论 -
iostat samples
I/O Monitoring ---- iostatiostat – Display only cpu statistics# iostat -ciostat – Display only disk I/O statistics# iostat -diostat – Display only network statistics# ios原创 2015-09-16 15:38:43 · 359 阅读 · 0 评论 -
linux performance monitoring
Linux Performance MonitoringCPU:You should understand the four critical performance metrics for CPU — context switch, run queue, cpu utilization, and load average.Context Switc原创 2015-09-14 13:53:14 · 374 阅读 · 0 评论 -
[NFS mount Error] System Error: No route to host.
Description: Iptables running and blocked the nfs portwhen running# mount -t nfs ovm1:/u01 /mntThe following error messages display:mount: mount to NFS server 'ovm1' failed: System Error: No原创 2015-09-09 13:55:55 · 777 阅读 · 1 评论 -
virt-install to create a new VM instance
The command to install the VM instance with virt-install command# virt-install -n VM1 -r 2048 -f /OVS/running_pool/VM1/System.img -s 20 --nographics -l nfs:192.168.200.11:/mnt -d -b xenbr0# vi原创 2015-09-09 13:32:33 · 401 阅读 · 0 评论 -
awk one line(老文章了,新老Administrator都用得到其中部分)
awk1line(老文章了,新老Administrator都用得到其中部分)转载 2015-09-11 15:13:26 · 590 阅读 · 0 评论 -
Expect and TCL mini reference manual
Expect and TCL mini reference manualExpect is an extension of the TCL language. This means that you can do everything with expect that you can do with TCL.1 TCL expressionsFirst of转载 2015-09-11 15:31:05 · 811 阅读 · 0 评论 -
links and inode
inode, hard link hardlink原创 2015-09-11 15:55:56 · 267 阅读 · 0 评论 -
sed one line
sed1line sed one line转载 2015-09-11 15:17:22 · 1029 阅读 · 0 评论 -
init: Id "co" respawning too fast: disabled for 5 minutes
"init: Id "co" respawning too fast: disabled for 5 minutes"The error messages exist in /var/log/messagescomment the line in /etc/inittabco:2345:respawn:/sbin/agetty 9600 ttyS1a原创 2015-09-14 11:31:33 · 1126 阅读 · 0 评论 -
putty 命令行参数
putty.exe [-ssh | -telnet | -rlogin | -raw] [user@]hostExample: putty -ssh -l vagrant -pw vagrant -P 2222 127.0.0.1 -V print version information and exit -pgpfp print PGP key fingerp转载 2015-09-16 15:14:14 · 1334 阅读 · 0 评论 -
linux cgroup技术介绍
原文:http://coolshell.cn/articles/17049.html前面,我们介绍了Linux Namespace,但是Namespace解决的问题主要是环境隔离的问题,这只是虚拟化中最最基础的一步,我们还需要解决对计算机资源使用上的隔离。也就是说,虽然你通过Namespace把我Jail到一个特定的环境中去了,但是我在其中的进程使用用CPU、内存、磁盘等这些计算资源其实还是...转载 2019-03-27 13:40:51 · 647 阅读 · 0 评论