CentOS7(4),2024年最新新鲜出炉的Linux运维面试真题集锦我给你们整理出来了
先自我介绍一下,小编浙江大学毕业,去过华为、字节跳动等大厂,目前阿里P7
深知大多数程序员,想要提升技能,往往是自己摸索成长,但自己不成体系的自学效果低效又漫长,而且极易碰到天花板技术停滞不前!
因此收集整理了一份《2024年最新Linux运维全套学习资料》,初衷也很简单,就是希望能够帮助到想自学提升又不知道该从何学起的朋友。
既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,涵盖了95%以上运维知识点,真正体系化!
由于文件比较多,这里只是将部分目录截图出来,全套包含大厂面经、学习笔记、源码讲义、实战项目、大纲路线、讲解视频,并且后续会持续更新
如果你需要这些资料,可以添加V获取:vip1024b (备注运维)
正文
chown postgres.postgres /data/ -R
**- 设置环境变量**
vim /home/postgres/.bash_profile
export PG_HOME=/data/postgres/
export PATH=
P
G
_
P
A
T
H
:
PG\_PATH:
PG_PATH:PG_HOME/bin:$PG_HOME/bin
export PG_PORT=5432
-启动数据库
#初始化数据库
[postgres@docker-master-79100 ~]$ initdb -D /data/postgresql/data
#启动数据库
[postgres@docker-master-79100 ~]$ pg_ctl -D /data/postgresql/data start
pg_ctl: another server might be running; trying to start server anyway
waiting for server to start…2020-08-02 01:05:11.011 CST [2653] LOG: starting PostgreSQL 12.3 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-16), 64-bit
2020-08-02 01:05:11.012 CST [2653] LOG: listening on IPv6 address “::1”, port 5432
2020-08-02 01:05:11.012 CST [2653] LOG: listening on IPv4 address “127.0.0.1”, port 5432
2020-08-02 01:05:11.015 CST [2653] LOG: listening on Unix socket “/tmp/.s.PGSQL.5432”
2020-08-02 01:05:11.041 CST [2654] LOG: database system was interrupted; last known up at 2020-08-01 23:35:12 CST
2020-08-02 01:05:11.049 CST [2654] LOG: database system was not properly shut down; automatic recovery in progress
2020-08-02 01:05:11.051 CST [2654] LOG: redo starts at 0/163AEE8
2020-08-02 01:05:11.051 CST [2654] LOG: invalid record length at 0/163AFD0: wanted 24, got 0
2020-08-02 01:05:11.051 CST [2654] LOG: redo done at 0/163AF98
2020-08-02 01:05:11.069 CST [2653] LOG: database system is ready to accept connections
done
server started
[postgres@docker-master-79100 ~]$ pg_ctl -D /data/postgresql/data status
pg_ctl: server is running (PID: 2653)
/home/postgres/bin/postgres “-D” “/data/postgresql/data”
*
## 为了方便使用,将12版本的数据库安装包打了一个一键化安装的tar包
*
### 已将一键化安装包上传至下载论坛:
[CentOS7.4系统下一键安装postgresql-12.3版本数据库]( )
**安装时注意:**
1、输入目录最后不用加 / (斜杠)
2、第一个数据入的是安装目录(home)
3、第二个数据入的是数据存放目录(data)
### **一键安装展示:**
[root@docker-slave-79101 ~]# fdisk -l
Disk /dev/sda: 107.4 GB, 107374182400 bytes, 209715200 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x000d02a2
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 1026047 512000 83 Linux
/dev/sda2 1026048 209715199 104344576 8e Linux LVM
Disk /dev/sdb: 21.5 GB, 21474836480 bytes, 41943040 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/centos-root: 104.7 GB, 104698216448 bytes, 204488704 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/centos-swap: 2147 MB, 2147483648 bytes, 4194304 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
[root@docker-slave-79101 ~]# mkfs.ext
mkfs.ext2 mkfs.ext3 mkfs.ext4
[root@docker-slave-79101 ~]# mkfs.ext4 /dev/sdb
mke2fs 1.42.9 (28-Dec-2013)
/dev/sdb is entire device, not just one partition!
Proceed anyway? (y,n) y
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
1310720 inodes, 5242880 blocks
262144 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=2153775104
160 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000
Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
[root@docker-slave-79101 ~]# mkdir /PG/12
mkdir: cannot create directory ‘/PG/12’: No such file or directory
[root@docker-slave-79101 ~]# mkdir /PG/12 -p
[root@docker-slave-79101 ~]# ll
total 48820
-rw-------. 1 root root 1831 Jul 16 16:54 anaconda-ks.cfg
-rw-r–r–. 1 root root 650922 Aug 1 07:19 openjdk-14.0.2_linux-x64_bin.tar.gz
-rw-r–r–. 1 root root 49334565 Aug 2 06:37 Postgres-12.3v.tar.gz
[root@docker-slave-79101 ~]# blkid
/dev/sda1: UUID=“0ee2726f-ccdb-4b0b-912c-d9ed82296330” TYPE=“ext4”
/dev/sda2: UUID=“X7flOH-knTA-lGf4-rek7-SZo9-GtS5-9jAGsy” TYPE=“LVM2_member”
/dev/sdb: UUID=“5f31e110-f3c2-42ca-84cf-82619d0788eb” TYPE=“ext4”
/dev/mapper/centos-root: UUID=“05eda9d9-d1c8-45bf-99e9-750b099ae98f” TYPE=“xfs”
/dev/mapper/centos-swap: UUID=“e36a8cde-a21b-43bf-bb29-7b12b5fcc7e6” TYPE=“swap”
[root@docker-slave-79101 ~]# clear
[root@docker-slave-79101 ~]#
[root@docker-slave-79101 ~]#
[root@docker-slave-79101 ~]# mkdir /PG/12 -p
[root@docker-slave-79101 ~]# mkfs.ext4 /dev/sdb
mke2fs 1.42.9 (28-Dec-2013)
/dev/sdb is entire device, not just one partition!
Proceed anyway? (y,n) y
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
1310720 inodes, 5242880 blocks
262144 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=2153775104
160 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000
Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
[root@docker-slave-79101 ~]# mount /dev/sdb /PG/12/
[root@docker-slave-79101 ~]# umount -l /PG/12/
[root@docker-slave-79101 ~]# mount /dev/sdb /PG/12/
[root@docker-slave-79101 ~]#
[root@docker-slave-79101 ~]#
[root@docker-slave-79101 ~]# rz
-bash: rz: command not found
[root@docker-slave-79101 ~]# yum install lrz* -y
Loaded plugins: fastestmirror, langpacks
base | 3.6 kB 00:00:00
centos-ansible-27 | 3.0 kB 00:00:00
centos-ansible-28 | 3.0 kB 00:00:00
centos-ansible-29 | 3.0 kB 00:00:00
centos-ansible26 | 2.9 kB 00:00:00
extras | 2.9 kB 00:00:00
updates | 2.9 kB 00:00:00
(1/2): centos-ansible-29/7/x86_64/primary_db | 16 kB 00:00:00
(2/2): updates/7/x86_64/primary_db | 3.7 MB 00:00:03
Determining fastest mirrors
- base: mirrors.cn99.com
- centos-ansible-27: mirrors.163.com
- centos-ansible-28: mirrors.163.com
- centos-ansible-29: mirrors.163.com
- centos-ansible26: mirrors.163.com
- extras: mirrors.163.com
- updates: mirrors.163.com
Resolving Dependencies
–> Running transaction check
—> Package lrzsz.x86_64 0:0.12.20-36.el7 will be installed
–> Finished Dependency Resolution
Dependencies Resolved
===============================================================================================================================================================================================
Package Arch Version Repository Size
Installing:
lrzsz x86_64 0.12.20-36.el7 base 78 k
Transaction Summary
Install 1 Package
Total download size: 78 k
Installed size: 181 k
Downloading packages:
lrzsz-0.12.20-36.el7.x86_64.rpm | 78 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : lrzsz-0.12.20-36.el7.x86_64 1/1
Verifying : lrzsz-0.12.20-36.el7.x86_64 1/1
最全的Linux教程,Linux从入门到精通
======================
-
linux从入门到精通(第2版)
-
Linux系统移植
-
Linux驱动开发入门与实战
-
LINUX 系统移植 第2版
-
Linux开源网络全栈详解 从DPDK到OpenFlow
第一份《Linux从入门到精通》466页
====================
内容简介
====
本书是获得了很多读者好评的Linux经典畅销书**《Linux从入门到精通》的第2版**。本书第1版出版后曾经多次印刷,并被51CTO读书频道评为“最受读者喜爱的原创IT技术图书奖”。本书第﹖版以最新的Ubuntu 12.04为版本,循序渐进地向读者介绍了Linux 的基础应用、系统管理、网络应用、娱乐和办公、程序开发、服务器配置、系统安全等。本书附带1张光盘,内容为本书配套多媒体教学视频。另外,本书还为读者提供了大量的Linux学习资料和Ubuntu安装镜像文件,供读者免费下载。
本书适合广大Linux初中级用户、开源软件爱好者和大专院校的学生阅读,同时也非常适合准备从事Linux平台开发的各类人员。
需要《Linux入门到精通》、《linux系统移植》、《Linux驱动开发入门实战》、《Linux开源网络全栈》电子书籍及教程的工程师朋友们劳烦您转发+评论
网上学习资料一大堆,但如果学到的知识不成体系,遇到问题时只是浅尝辄止,不再深入研究,那么很难做到真正的技术提升。
需要这份系统化的资料的朋友,可以添加V获取:vip1024b (备注运维)
一个人可以走的很快,但一群人才能走的更远!不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!
inux开源网络全栈》电子书籍及教程的工程师朋友们劳烦您转发+评论
网上学习资料一大堆,但如果学到的知识不成体系,遇到问题时只是浅尝辄止,不再深入研究,那么很难做到真正的技术提升。
需要这份系统化的资料的朋友,可以添加V获取:vip1024b (备注运维)
[外链图片转存中…(img-gYZndFsH-1713119961465)]
一个人可以走的很快,但一群人才能走的更远!不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!
更多推荐
所有评论(0)