fstab 系统性能优化
vim /etc/fstab
#
# /etc/fstab
# Created by anaconda on Sat Feb 27 05:27:44 2016
#
# Accessible filesystems, by reference, are maintained under ‘/dev/disk‘
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=8cce7e6a-21c2-43c7-92a2-1af53fbe9f5f / ext4 defaults 1 1
UUID=09099682-c512-446a-9677-742ef2b7facc swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
proc /proc proc defaults,noatime 0 0
格式化大于2T硬盘
yum install parted -y
parted -s /dev/sdb mklabel gpt
mkfs.ext3 /dev/sdb
mount /dev/sdb /data/
[[email protected] ~]# fdisk -l
Disk /dev/sda: 64.4 GB, 64424509440 bytes
255 heads, 63 sectors/track, 7832 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000cecbc
Device Boot Start End Blocks Id System
/dev/sda1 1 256 2048000 82 Linux swap / Solaris
Partition 1 does not end on cylinder boundary.
/dev/sda2 * 256 7833 60865536 83 Linux
Disk /dev/sdb: 2147.5 GB, 2147483648000 bytes
255 heads, 63 sectors/track, 261083 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
screen后台运行命令
yum install screen -y
screen 回车 进入后台
./han.sh 输入脚本或命令
ctrl+a+d 保存
[[email protected] ~]# screen -ls 查看后台运行的程序
There are screens on:
1290.pts-0.han2 (Dead ???)
1719.pts-0.han2 (Attached)
Remove dead screens with ‘screen -wipe‘.
2 Sockets in /var/run/screen/S-root.
[[email protected] ~]# screen -ls 进入后台
删除后台程序
执行 pkill -9 1290
即可删除 screen -wipe