centos7 選定預設啟動核心,及刪除無用核心
#使用cat /boot/grub2/grub.cfg |grep menuentry 檢視系統可用核心 [[email protected] ~]# cat /boot/grub2/grub.cfg |grep menuentry if [ x"${feature_menuentry_id}" = xy ]; then menuentry_id_option="--id" menuentry_id_option="" export menuentry_id_option menuentry 'CentOS Linux (3.10.0-514.16.1.el7.x86_64) 7 (Core)' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.10.0-327.el7.x86_64-advanced-6f5840d0-55ac-4d3b-899b-61c0297c5347' { menuentry 'CentOS Linux (3.10.0-327.el7.x86_64) 7 (Core)' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.10.0-327.el7.x86_64-advanced-6f5840d0-55ac-4d3b-899b-61c0297c5347' { menuentry 'CentOS Linux (0-rescue-d57307c454c0437d91c309347178cdf5) 7 (Core)' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-0-rescue-d57307c454c0437d91c309347178cdf5-advanced-6f5840d0-55ac-4d3b-899b-61c0297c5347' { #檢視當前核心 [
[email protected] ~]# uname -r 3.10.0-514.16.1.el7.x86_64 #修改開機時預設使用的核心 grub2-set-default 'CentOS Linux (3.10.0-327.el7.x86_64) 7 (Core)' #檢視核心修改結果 [[email protected] ~]# grub2-editenv list saved_entry=CentOS Linux (3.10.0-327.el7.x86_64) 7 (Core) #檢視系統安裝了哪些核心包 [[email protected] ~]# rpm -qa |grep kernel kernel-3.10.0-327.el7.x86_64 kernel-headers-3.10.0-514.6.1.el7.x86_64 kernel-tools-libs-3.10.0-327.el7.x86_64 kernel-3.10.0-514.16.1.el7.x86_64 kernel-tools-3.10.0-327.el7.x86_64 #使用yum remove 或rpm -e 刪除無用核心 yum remove kernel-3.10.0-327.el7.x86_64
原文連結:
https://www.cnblogs.com/niyeshiyoumo/p/6762193.html
相關推薦
centos7 選定預設啟動核心,及刪除無用核心
#使用cat /boot/grub2/grub.cfg |grep menuentry 檢視系統可用核心 [[email protected] ~]# cat /boot/grub2/grub.cfg |grep menuentry if [ x"${featur
centos7 選定默認啟動內核,及刪除無用內核
root 修改 pan list 開機 mov default try option 轉自 https://www.cnblogs.com/niyeshiyoumo/p/6762193.html centos7 選定默認啟動內核,及刪除無用內核 #使用cat /bo
Linux - 修改內核啟動順序及刪除無用內核
sum name ade gin nis db4 pre transacti 內核啟動 現象: CentOS7開機啟動界面顯示多個內核選項 原因: 正常情況下,有兩個啟動項,一個是“正常啟動”,另一個是“救援模式啟動”(rescue)。 如果啟動項多於2個,說明當前系統有舊
CentOS7更改預設啟動桌面(或命令列)模式
雖然inittab中已經無法修改,但還是可以去下原因。 命令列中:vi /etc/inittab centos仍然只有兩種啟動模式 multi-user.target: analogous to runlevel 3 #命令列模式 graphical.target: analogous to runle
matlab的檔名字提取,及刪除字尾
參考 http://blog.csdn.net/uncle_ll/article/details/65632505 http://yongliu2005.blog.163.com/blog/static/2180000642014128816372/ 1、帶字尾
檔名字提取,及刪除字尾 matlab
提取符合條件檔名和字尾的檔案 fileFolder = fullfile(matlabroot,'mathclass','raccoon'); % 遍歷資料夾下所有符合條件的檔案 dirOutput = dir(fullfile(fileFolder,'ra*.jpg')); % 提取
用matlab提取檔名,及刪除字尾
#1、帶字尾 fileFolder = fullfile(matlabroot,‘mathclass’,‘raccoon’); % 遍歷資料夾下所有符合條件的檔案 dirOutput = dir(
CentOS7更改預設啟動模式
老版本centos5,centos6的啟動模式配置檔案是/etc/inittab,但centos7裡這個檔案已經沒用了,但可以用來做參考。centos7列出了兩個最主要啟動模式 # more /etc/inittab multi-user.target: an
GRUB2配置詳解:預設啟動項,超時時間,隱藏引導選單,配置檔案詳解,圖形化配置
配置檔案詳解: /etc/default/grub # 設定預設啟動項,推薦使用數字 GRUB_DEFAULT=0 # 註釋掉下面這行將會顯示引導選單 #GRUB_HIDDEN_TIMEOUT=0 # 黑屏,並且不顯示GRUB_HIDDEN_TIMEOUT過程中的倒計
Linux Mint 18(Debian 9),批量刪除舊核心
Debian系列的Linux,更新有時候會有核心更新,更新之後……舊的核心不會被刪掉,所以需要手工執行刪除: 如果是純手工,最好先看一下當前使用的版本: uname -a 之後,使用命令檢視目前已經
新增服務到開機自動啟動(centos7開機自啟動nginx,php-fpm)
說明 參考網路上其他人文章。將他人技術文章親自測試並總結補充。 開機自啟動nginx,php-fpm(其他服務類似) centos 7以上是用Systemd進行系統初始化的,Systemd 是 Linux 系統中最新的初始化系統(init),它主要的設計目標是克服
CentOS7 修改預設啟動項
root使用者編輯:vim /etc/default/grub 然後註釋(開頭加'#')GRUB_DEFAULT=saved,在下一行加入GRUB_DEFAULT="XXXX",儲存並退
easyui 雙擊行,啟動編輯 ,及 儲存 和 撤銷 的實現。
當前程式碼實現在webgate 專案中, webgate 專案地址:https://github.com/Wenhaoran/webgate DataGrid 中,使用的 事件,方法,均可檢視 easyui API 1、在所有需要啟動編輯的列,加上 editor,可檢
Mac下jupyter notebook只有python2核心,如何安裝Python3核心?
發現我的Mac下jupyter notebook只有python2核心,沒有python3,但是我要用Python3.然後開始漫長的將Python3弄進jupyter中之路!1。我猜我可能當時安裝的時候用的pip install jupyter,因為電腦裡Python既有2
kindle 應用程式出錯,無法啟動選定的應用程式,請重試。問題排查過程及處理方案。
最近一段時間在使用Kindle商城時總是會出現“應用程式出錯,無法啟動選定的應用程式,請重試。” 對此我花了大約一小時的時間進行測試驗證並與客服人員溝通,將過程記錄如下,供出現同樣問題的朋友們參考。 冒煙測試的流程: Kindle 型號:paperwhite3 韌體版本 5.9.7 操
Linux-Centos7及以上預設啟動介面修改方法
1、檢視當前系統啟動模式 systemctl get-default 2、修改預設啟動介面為圖形介面 systemctl set-default graphical.target 3、 修改預設啟動介面為命令介面 systemctl set-default mu
jenkins 的預設使用者名稱和密碼,及啟動方法
預設使用者名稱:admin 預設密碼在 C:\Users\HT\.jenkins\secrets\initialAdminPassword (我的電腦使用者名稱叫HT,看看您的是什麼) -------------------------------------
nfs啟動:u-boot啟動後從ubuntu tftp下載核心及裝置樹,檔案系統掛載在nfs伺服器目錄
U-Boot# setenv netargs "setenv bootargs console=${console} ${optargs} root=/dev/nfs rootfstype=nfsroot nfsroot=${serverip}:${rootpath} ip=${ipaddr
centos系統有多個核心,修改預設啟動核心
開啟系統檔案 vim /boot/grub/grub.conf 預設由0開始計數,因此須將default值改為0即可。 重啟伺服器 reboot ----------
win10和centOS7雙系統,預設啟動win10
方法一 一、修復引導win10:1.使用root身份(必須)開啟 /boot/grub2/grub.cfg 2.找到 ### BEGIN /etc/grub.d/30_os-prober ### 在後面新增 menuentry 'Windows 10' { insmod n