步骤一:系统环境要求
服务器系统配置好可用的软件源
步骤二:安装 cockpit
# yum -y install cockpit cockpit-dashaboard
(补充:cockpit 是管理单台主机的程序,cockpit-dashaboard 是管理多台主机的程序)
步骤三:启动 cockpit
# systemctl start cockpit
步骤四:登录 cockpit
使用浏览器登录:https://<服务器的 IP 地址>:9090
服务器系统配置好可用的软件源
# yum -y install cockpit cockpit-dashaboard
(补充:cockpit 是管理单台主机的程序,cockpit-dashaboard 是管理多台主机的程序)
# systemctl start cockpit
使用浏览器登录:https://<服务器的 IP 地址>:9090
# kill -9 <pid number>
或者:
# kill -<kill option> <pid number>
# kill -15 <pid number>
# killall <process name>
# firefox&
按下 “ctrl” 键和 “z” 键
# jobs
# jobs %<background process number>
# jobs %<background process name>
(注意:只有后台进程名唯一时此操作才有效)
# bg %<background process number>
(注意:只有可以在后台启动的进程才能在后台启动)
# bg %<background process name>
(注意:只有可以在后台启动的进程才能在后台启动,且只有后台进程名唯一时此操作才有效)
# fg %<background process number>
# fg %<background process name>
(注意:只有后台进程名唯一时此操作才有效)
# kill %<background process number>
(补充:这里可以配合各种 kill 选项进行操作,例如 kill -9)
# kill %<background process name>
(注意:只有后台进程名唯一时此操作才有效)
(补充:这里可以配合各种 kill 选项进行操作,例如 kill -9)
开启 core dump 之后,如果出现了 C 语言程序的 crash,则会将 crash 的结果记录到一个文件里
# ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 31722
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 31722
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
# ulimit -c unlimited
# ulimit -a
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 31722
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 31722
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
# sysctl -w kernel.core_pattern=/tmp/corefile/core-%e-%p
服务器系统要配置好可用的软件源
# zypper se -t pattern
# zypper in -t pattern gnome
# vim /etc/sysconfig/displaymanager
将以下内容:
......
DISPLAYMANAGER_XSERVER="Xorg"
修改为:
......
DISPLAYMANAGER_XSERVER="gdm"
# systemctl set-default graphical.target
# startx
或者:
# init 5