标签:txt 磁盘 nbsp 命令 x86_64 配置 asm ini 格式
[root@bogon 桌面]# fdisk -l 查看磁盘列表
[root@bogon 桌面]# fdisk /dev/sdc
[root@bogon 桌面]#Mkfs.ext3 /dev/sdc1
[root@bogon桌面]# mkswap /dev/sdc5
[root@bogon 桌面]# swapon /dev/sdc5
[root@bogon 桌面]# swapon -s
[root@bogon 桌面]# free –h
buffer 的作用是:把数据分散开等到一定数量时在进行储存,加速了数据得写入过程
cache 的作用是: 把读出来的数据保存到内存,存放一段时间。以便下次如果有数据访问时,不用读取硬盘,可以从内存中读取
(580492/1870760)100%=30%
[root@bogon桌面]# dd if=/dev/zero of=/tmp/test.txt bs=1M count=100
[root@bogon 桌面]# ps aux|grep firewall
[root@bogon 桌面]# kill -9 908
root@bogon 桌面]# mount /dev/sr0 /media
root@bogon 桌面]# ll /media
[root@bogonPackages]#cd/media/Packages
[root@bogonPackages]#ls
[root@bogonPackages]#rpm -qa
[root@bogon Packages]# rpm -qa|grep dhcp
[root@bogonPackages]#rpm-ivh dhcp-4.2.5-27.el7.centos.x86_64.rpm
[root@bogon Packages]# rpm -qi dhcp
[root@bogon Packages]# rpm -ql dhcp
[root@bogon Packages]# rpm -qf /bin/ls
[root@bogon Packages]#rpm –e dhcp
[root@bogon Packages]#rpm –ql dhcp
[root@bogon ~]# mkdir /rpm-meet
[root@bogon ~]# cd /rpm-meet
[root@bogon rpm-meet]# ll
[root@bogonrpm-meet]#cp/media/Packages/httpd-2.4.6-17.el7.centos.1.x86_64.rpm /rpm-meet
[root@bogon rpm-meet]# cp /media/Packages/apr-* /rpm-meet
[root@bogonrpm-meet]#cp/media/Packages/mailcap-2.1.41-2.el7.noarch.rpm /rpm-meet
[root@bogon rpm-meet]# cd /rpm-meet
[root@bogon rpm-meet]# ll
总用量 3244
-rw-r--r--. 1 root root 105572 3月 17 23:43 apr-1.4.8-3.el7.x86_64.rpm
-rw-r--r--. 1 root root 192428 3月 17 23:43 apr-devel-1.4.8-3.el7.x86_64.rpm
-rw-r--r--. 1 root root 94132 3月 17 23:43 apr-util-1.5.2-6.el7.x86_64.rpm
-rw-r--r--. 1 root root 78072 3月 17 23:43 apr-util-devel-1.5.2-6.el7.x86_64.rpm
-rw-r--r--. 1 root root 2812092 3月 17 23:36 httpd-2.4.6-17.el7.centos.1.x86_64.rpm
-rw-r--r--. 1 root root 31264 3月 17 23:44 mailcap-2.1.41-2.el7.noarch.rpm
[root@bogon rpm-meet]# createrepo /rpm-meet
Spawning worker 0 with 6 pkgs
Workers Finished
Saving Primary metadata
Saving file lists metadata
Saving other metadata
Generating sqlite DBs
Sqlite DBs complete
[root@bogon rpm-meet]# ll
总用量 3248
-rw-r--r--. 1 root root 105572 3月 17 23:43 apr-1.4.8-3.el7.x86_64.rpm
-rw-r--r--. 1 root root 192428 3月 17 23:43 apr-devel-1.4.8-3.el7.x86_64.rpm
-rw-r--r--. 1 root root 94132 3月 17 23:43 apr-util-1.5.2-6.el7.x86_64.rpm
-rw-r--r--. 1 root root 78072 3月 17 23:43 apr-util-devel-1.5.2-6.el7.x86_64.rpm
-rw-r--r--. 1 root root 2812092 3月 17 23:36 httpd-2.4.6-17.el7.centos.1.x86_64.rpm
-rw-r--r--. 1 root root 31264 3月 17 23:44 mailcap-2.1.41-2.el7.noarch.rpm
drwxr-xr-x. 2 root root 4096 3月 17 23:44 repodata
[root@bogon rpm-meet]# vim /rpm.conf.d
[root@bogon rpm-meet]# cat /etc/yum.repos.d/rpm-meet
[rpm-meet]
name=centos rpm-meet
baseurl=file:///rpm-meet
enabled=1
gpgcheck=0
Yum install httyd -y
[root@bogon rpm-meet]# yum –y remove httpd
[root@bogon rpm-meet]# cat rpm-eet.repo
[rpm-meet]
name=centos rpm-meet
baseurl=file:///rpm-meet
enabled=1
gpgcheck=0
[root@bogon yum.repos.d]# yum clean all
[root@ bogon yum.repos.d]# yum grouplist
[root@bogonyum.repos.d]#yum-ygroupinstall "KDE Plasma Workspaces"
[root@bogonyum.repos.d]#yum-ygroupinstall "虚拟化主机"
[root@bogonyum.repos.d]# yum -y groupremove "虚拟化主机"
[root@bogon yum.repos.d]# yum clean all
已加载插件:fastestmirror, langpacks
正在清理软件源: rpm-meet
Cleaning up everything
Cleaning up list of fastest mirrors
[root@ bogon yum.repos.d]# yum search httpd
[root@ bogon yum.repos.d]#tar -xvzf Python-3.6.0.tgz
[root@ bogon yum.repos.d]#cd Python-3.6.0
[root@ bogon Python]#./configure --prefix=/usr/python
[root@ bogon Python]#make
[root@ bogon Python]#make install
标签:txt 磁盘 nbsp 命令 x86_64 配置 asm ini 格式
原文地址:http://www.cnblogs.com/guobaoyuan/p/6579885.html