The four-week study summary catalogue
I. Knowledge context diagram
Two. Package Management
Three. Disk Management
I. Knowledge context diagram
Two. package Management 1. Software composition
二进制应用程序的组成部分: 二进制文件,库文件,配置文件,帮助文件
Library files:
库文件是一个很特殊的存在,他对于很多程序起着支持作用,如果不小心丢失或损坏,很多程序可能会起不来 例如:当/lib64/libc.so.6文件名称变更后,许多命令会丢失,甚至整个操作系统会启动不了。
解决办法:进入linux下的救援模式,用这个较简单的系统将硬盘挂载起来,变更库文件名字即可。
Step1: Go to rescue Mode (Rescue installed system), always next.
This will confirm that the hard drive is mounted on the/mnt/sysimage, or select Continnue Next
Step2: Here you can go to/mnt/sysimage/lib64/modify the library file name, or you can directly copy/lib64/libc.so.6 to/mnt/sysimage/lib64/(I chose to copy)
Step3: Command line input reboot to resume normal operation
ldd `which ifconfig ` 查看某命令需要哪些lib文件(注意是反引号不是单引号)ldconfig -p 查看所有加载的库文件
2.rpm
3.yum
Use CENTOS6 FTP to deploy a Yum network repository that can be used by CENTOS6, CENTOS7 systems:
Steps:
1. Installing VSFTPD
rpm -ivh vsftpd-2.2.2-24.el6.x86_64.rpm
2. Start the VSFTPD service and set it to start automatically after reboot
service vsftpd start chkconfig vsftpd on
3. Turn off SELinux
vim /etc/selinux/config 设置SELINUX=disabled reboot
4. Turn off the firewall
iptables -F service iptables save
5. Create FTP directory and copy rpm file
cd /var/ftp/pub mkdir 6 7
4. Package compilation Installation
CENTOS7 installation Apache22 as an example:
Step1:
./configure 制定启用特性,安装路径;检查外部环境,如依赖的软件包 ./configure --prefix=/app/apache24
Step2:
Yum-y Install Apr-devel
Yum-y Install Apr-util-devel
Yum-y Install Pcre-devel
Make build applications based on makefile files
Step3:
make install 复制文件到相应路径
Three. Disk Management disk Partitioning
Step1: Using fdisk,gdisk,parted partitioning
Step2: Update synchronization
STEP3: Format File system
Fdisk
Interactive partitioning
Gdisk
Interactive partitioning
和fdisk相似,他可以进行得到2T空间以上的分区
Parted
More advanced, detailed partitioning tools for interactive partitioning
Mount
Mount
mount 挂载磁盘 挂载点-t vsftype:指定要挂载的设备上的文件系统类型-r: readonly,只读挂载-w: read and write, 读写挂载-n: 不更新/etc/mtab,mount不可见-a:自动挂载所有支持自动挂载的设备(定义在了/etc/fstab文件中,且挂载选项中有auto功能)-L ‘LABEL‘: 以卷标指定挂载设备-U ‘UUID‘: 以UUID指定要挂载的设备-B, --bind: 绑定目录到另一个目录上
Swap partition
Swap
Linux Basics Summary (iv)