Linux启动和故障排错系统启动流程:系统初始化:POST-->BootSequence(BIOS)-->Bootloader(MBR)-->kernel(ramdisk)-->rootfs(只读)-->init(systemd)init程序的类型:Upstart:init,CentOS6配置文件:/etc/inittab,/etc/init/*.confSystem
分类:
系统相关 时间:
2019-06-22 19:57:33
阅读次数:
185
//192.168.1.168/www /home/www cifs username=administrator,password=0p-0p-0p-,noauto,x-systemd.automount 0 0 加了noauto,x-systemd.automount 后 系统会自动检测网络盘有 ...
分类:
其他好文 时间:
2019-06-21 09:35:28
阅读次数:
156
一次性创建多个文件夹:mkdir -p /test/{1,2,3} //注册systemd服务 https://gist.github.com/mkocikowski/aeca878d58d313e902bb // 列出 systemctl上所有服务 systemctl list-unit-file ...
分类:
系统相关 时间:
2019-06-20 12:40:35
阅读次数:
137
Nginx安装好后,每次启动或者重启需要进入到/usr/local/nginx下操作,比较麻烦,于是把Nginx添加到系统服务中方便管理:#添加nginx.service#vim/lib/systemd/system/nginx.service[Unit]Description=nginxserviceAfter=network.target[Service]Type=forking#路径对应安装
分类:
其他好文 时间:
2019-06-19 16:24:37
阅读次数:
108
前言:因为centos7使用的是systemd初始化进程改动比较大,使用这里主要介绍centos5和6的开机启动流程。先上一个大致的启动流程图第一步:POST加电自检 加电自检是BIOS功能的一部分,负责CPU,主板,内存等硬件的自检工作。第二步:BootLoader引导加载器 它负责引导系统启动,目前主流的linux都是用GRU
分类:
其他好文 时间:
2019-06-15 21:57:39
阅读次数:
168
前言 顾明思议,自己创建系统服务,在上一篇博文中写道了,这里就详细写下~ 步骤 我是一段美丽的用户分割的废话~ 进入到系统服务目录 ··· cd /lib/systemd/system ··· 创建服务文件 ··· vi chandao.service [Unit] Description=chan ...
分类:
其他好文 时间:
2019-06-14 23:32:44
阅读次数:
117
1 故障起因 收到白盒告警:线上机器ip:x.x.x.x 文件系统没有挂载(/search/odin)。 看来得登上机器排查了。 2 df h看下情况 果然/search/odin没了。 3 journalctl看日志 journalctl 用来查询 systemd journald 服务收集到的日 ...
分类:
其他好文 时间:
2019-06-12 16:37:28
阅读次数:
213
[ 0.000000] Booting Linux on physical CPU 0x0[ 0.000000] Linux version 4.14.98-imx_4.14.98_2.0.0_ga+g5d6cbea (oe-user@oe-host) (gcc version 7.3.0 (GCC ...
分类:
其他好文 时间:
2019-06-09 09:21:15
阅读次数:
510
[ 0.000000] Booting Linux on physical CPU 0x0[ 0.000000] Linux version 4.14.98-imx_4.14.98_2.0.0_ga+g5d6cbea (oe-user@oe-host) (gcc version 7.3.0 (GCC ...
分类:
其他好文 时间:
2019-06-09 09:14:35
阅读次数:
91
[ 0.000000] Booting Linux on physical CPU 0x0[ 0.000000] Linux version 4.14.98-imx_4.14.98_2.0.0_ga+g5d6cbea (oe-user@oe-host) (gcc version 7.3.0 (GCC ...
分类:
其他好文 时间:
2019-06-09 09:14:15
阅读次数:
94