16-7系统启动和内核管理

一、相关安装包安装   支持NTFS

[root@centos8 ~]#yum -y install gcc make ncurses-devel flex bison openssl-devel elfutils-libelf-devel
[root@centos8 ~]#tar xvf linux -C /usr/local/src 解压到src目录下
[root@centos8 ~]#cp /boot/config-4.18.0-240.el8.x86_64 .coinfig 拷批原有内核参数命名为.config
[root@centos8 ~]#/CONFIG_MODULE_SIG=y 进入.config文件中找到当前行并注释掉。
[root@centos8 ~]#/CONFIG_SYSTEM_TRUSTED_KEYS="" 证书文件,需要清空。
[root@centos8 /usr/local/src/linux-6.4.1]#make menuconfig 进入图形化页面
[root@centos8 /usr/local/src/linux-6.4.1]#grep -i ntfs .config 查看文件
CONFIG_NTFS_FS=m
CONFIG_NTFS_DEBUG=y
CONFIG_NTFS_RW=y
# CONFIG_NTFS3_FS is not set
[root@centos8 /usr/local/src/linux-6.4.1]#make install

root@centos8 /usr/local/src/linux-6.4.1] make -j 4;date;ehco -e '\a' 进行安装外加安装完成后声音提示
 

第一步

   

第二步

 第三步

第四步

第五步

 第六步 (空格键选M)

 二、systemd特性

服务  systemcatl status firewalld

systemctl status firewalld   查看服务状态
systemctl restart firewalld  启动服务
systemctl stop firewalld     关闭服务    都是临时性的
开机启动
systemctl enabled firewalld   
开机不启动
systemctl disable firewalld
验证服务是否开机启动
systemctl is-enabled firewalld
禁用
systemctl mask firewalld
在启用
systemctl unmask firewalld
查看安装包
rpm -ql nginx
设置开机启动并立刻启动
systemctl enable --now nginx

ubuntu  更新源:apt-get upgrade -y   

[root@ubuntu /etc/apt]#apt install nginx -y  安装nginx
[root@ubuntu /etc/apt]#dpkg -L nginx  查看安装nginx的路径文件

 

posted @ 2023-07-06 10:28  最拉的刺客  阅读(26)  评论(0)    收藏  举报