Академический Документы
Профессиональный Документы
Культура Документы
LINUXPROCESSSYSTEMDISCUSSION
Youaremostwelcometothispost.
Reallythankstoyouforyourinterestinthistopics.:)
Inthispost,wellseetheLinuxprocesssystemmanagementofLinux,Linuxbootupsystem,
enable/disable/statusofaservice.
LINUXPROCESSSYSTEMDISCUSSION
Lets1st loginasrootuser.
[ece@localhostDesktop]$su
Password:
Lastlogin:SunMay822:59:38EDT2016onpts/0
[root@localhost~]#ps
[root@localhost~]#psautoseethepid,mem,cpu,process,cmd,tty
[root@localhost~]#psurootListofprocessforspecificuser.
[root@localhost~]#psef
[root@localhost~]#pidofsystemd
1
[root@localhost~]#firefoxOpenfirefox
[root@localhost~]#jobs
Supposethat,youaregoingtoexecuteacommand,thenyouareshowingamessage,thatis,another
processisrunning.Andtheprocessidisshown.Sotocontinueyourwork,youneedtostoptheprocess
http://whilenetworking.com/2016/06/02/linux-process-system-discussion/
1/5
15/11/2016
throughthiscommand.
[root@localhost~]#kill3670kill<processid>
Sometimes,thereisneededtoforcekilltheprocessid.Thenyouneedtowritekill9<processid>
[root@localhost~]#kill93670
LinuxProcessmanagement(CentOS)
LinuxProcessmanagement(CentOS)
LinuxProcessmanagement(CentOS)
http://whilenetworking.com/2016/06/02/linux-process-system-discussion/
2/5
15/11/2016
LinuxProcessmanagement(CentOS)
LinuxProcessmanagement(CentOS)
LinuxProcessmanagement(CentOS)
ForcekillanytaskinLinux(CentOS/RedHat)
LinuxBootupProcess:
==>CMD(tty)
BIOS/UEFI=>MBR/GPT=>GRUB2=>Kernel=>systemd=>Target=>
==>GUI(pts)
systemd:
OneofthemajorchangesinRHEL/CentOS7.0istheswtichtosystemd,Whichasystemandservicemanager,
thatreplacesSysVandUpstart,whichwasusedinpreviousreleasesofRedHatEnterpriseLinux.Thesystemd
iscompatiblewithSysVandalsowithLinuxStandardBaseinitscripts.
http://whilenetworking.com/2016/06/02/linux-process-system-discussion/
3/5
15/11/2016
=>Fedora17/RHEL/CentOS6=SystemV/init
=>Ubuntu/SUSE/Debian=upstart
=>Fedora18+/RHEL/CentOS7/Ubuntu15=systemd
ChangeDefaultBootTime:
[root@serverX~]#vim/boot/grub2/grub.cfg
:setnu
63settimeout=40
[root@serverX~]#reboot
GrubEntryCustomize:
[root@serverX~]#vim/boot/grub2/grub.cfg
InOLDsystem:
76menuentryCentOSLinux,withLinux3.10.0123.el7.x86_64
91menuentryCentOSLinux,withLinux0rescuefdbe8dca6eb044b6895149fc28e4a871
Innewsystem:
76menuentryLinuxServer
91menuentryCentOSRecoverymode
[root@serverX~]#reboot
[root@serverX~]#vim/etc/motd
http://whilenetworking.com/2016/06/02/linux-process-system-discussion/
4/5
15/11/2016
[root@serverX~]#logoutlogout
WorkingwithLinuxKernel:
[root@serverX~]#unamer
[root@serverX~]#yumlistinstalledkernel*
[root@serverX~]#yumupdatekernely
[root@serverX~]#yumlistinstalledkernel*
RHEL6orOlderVersion:
[root@serverX~]#ls/etc/init.d/
RHEL7ormorenewversion:
[root@serverX~]#ls/lib/systemd/system/*.service
[root@serverX~]#systemctltservice
Start/Stop/Restart/statusServiceswithsystemctl:
[root@desktopX~]#systemctlstartcrond.service
[root@desktopX~]#systemctlstatuscrond.service
[root@desktopX~]#systemctlstopcrond.service
[root@desktopX~]#systemctlstatuscrond.service
[root@desktopX~]#systemctlrestartcrond.service
[root@desktopX~]#systemctlreloadXXXX.service
http://whilenetworking.com/2016/06/02/linux-process-system-discussion/
5/5