标签云
asm恢复 bbed bootstrap$ dul In Memory kcbzib_kcrsds_1 kccpb_sanity_check_2 kfed MySQL恢复 ORA-00312 ORA-00607 ORA-00704 ORA-01110 ORA-01555 ORA-01578 ORA-08103 ORA-600 2131 ORA-600 2662 ORA-600 2663 ORA-600 3020 ORA-600 4000 ORA-600 4137 ORA-600 4193 ORA-600 4194 ORA-600 16703 ORA-600 kcbzib_kcrsds_1 ORA-600 KCLCHKBLK_4 ORA-15042 ORA-15196 ORACLE 12C oracle dul ORACLE PATCH Oracle Recovery Tools oracle加密恢复 oracle勒索 oracle勒索恢复 oracle异常恢复 Oracle 恢复 ORACLE恢复 ORACLE数据库恢复 oracle 比特币 OSD-04016 YOUR FILES ARE ENCRYPTED 勒索恢复 比特币加密文章分类
- Others (2)
- 中间件 (2)
- WebLogic (2)
- 操作系统 (102)
- 数据库 (1,674)
- DB2 (22)
- MySQL (73)
- Oracle (1,536)
- Data Guard (52)
- EXADATA (8)
- GoldenGate (22)
- ORA-xxxxx (159)
- ORACLE 12C (72)
- ORACLE 18C (6)
- ORACLE 19C (14)
- ORACLE 21C (3)
- Oracle 23ai (7)
- Oracle ASM (67)
- Oracle Bug (8)
- Oracle RAC (52)
- Oracle 安全 (6)
- Oracle 开发 (28)
- Oracle 监听 (28)
- Oracle备份恢复 (562)
- Oracle安装升级 (92)
- Oracle性能优化 (62)
- 专题索引 (5)
- 勒索恢复 (78)
- PostgreSQL (18)
- PostgreSQL恢复 (6)
- SQL Server (27)
- SQL Server恢复 (8)
- TimesTen (7)
- 达梦数据库 (2)
- 生活娱乐 (2)
- 至理名言 (11)
- 虚拟化 (2)
- VMware (2)
- 软件开发 (37)
- Asp.Net (9)
- JavaScript (12)
- PHP (2)
- 小工具 (20)
-
最近发表
- GoldenGate 19安装和打patch
- dd破坏asm磁盘头恢复
- 删除asmlib磁盘导致磁盘组故障恢复
- Kylin Linux 安装19c
- ORA-600 krse_arc_complete.4
- Oracle 19c 202410补丁(RUs+OJVM)
- ntfs MFT损坏(ntfs文件系统故障)导致oracle异常恢复
- .mkp扩展名oracle数据文件加密恢复
- 清空redo,导致ORA-27048: skgfifi: file header information is invalid
- A_H_README_TO_RECOVER勒索恢复
- 通过alert日志分析客户自行对一个数据库恢复的来龙去脉和点评
- ORA-12514: TNS: 监听进程不能解析在连接描述符中给出的SERVICE_NAME
- ORA-01092 ORA-00604 ORA-01558故障处理
- ORA-65088: database open should be retried
- Oracle 19c异常恢复—ORA-01209/ORA-65088
- ORA-600 16703故障再现
- 数据库启动报ORA-27102 OSD-00026 O/S-Error: (OS 1455)
- .[metro777@cock.li].Elbie勒索病毒加密数据库恢复
- 应用连接错误,初始化mysql数据库恢复
- RAC默认服务配置优先节点
标签归档:systemctl
Linux 7 新命令之—lscpu和systemctl
redhat 7 系列发布已经有一段时间了,最近抽时间看了下官方文档,对比了一些命令,对于其中比较关注的进行了记录,本篇主要是列出来了服务的管理改进,引进了systemctl管理和一个非常方便看cpu信息的命令lscpu
系统版本
[root@em12cdb ~]# uname -a Linux em12cdb 3.8.13-55.1.6.el7uek.x86_64 #2 SMP Wed Feb 11 14:18:22 PST 2015 x86_64 x86_64 x86_64 GNU/Linux [root@em12cdb ~]# more /etc/oracle-release Oracle Linux Server release 7.1
查看cpu信息
[root@em12cdb ~]# lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 2 On-line CPU(s) list: 0,1 Thread(s) per core: 1 Core(s) per socket: 2 Socket(s): 1 NUMA node(s): 1 Vendor ID: GenuineIntel CPU family: 6 Model: 60 Model name: Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz Stepping: 3 CPU MHz: 3997.739 BogoMIPS: 7995.47 Hypervisor vendor: VMware Virtualization type: full L1d cache: 32K L1i cache: 32K L2 cache: 256K L3 cache: 8192K NUMA node0 CPU(s): 0,1
systemctl命令管理服务和开机启动
以前主要是通过/etc/init.d/或者service命令管理服务,通过chkconfig管理是否开机启动
--查看某个服务状态 [root@em12cdb ~]# systemctl status crond.service crond.service - Command Scheduler Loaded: loaded (/usr/lib/systemd/system/crond.service; enabled) Active: active (running) since Mon 2015-07-27 11:59:16 CST; 1 months 7 days ago Main PID: 1245 (crond) CGroup: /system.slice/crond.service └─1245 /usr/sbin/crond -n Jul 27 11:59:16 em12cdb systemd[1]: Started Command Scheduler. Jul 27 11:59:16 em12cdb crond[1245]: (CRON) INFO (RANDOM_DELAY will be scaled with factor 33% if used.) Jul 27 11:59:17 em12cdb crond[1245]: (CRON) INFO (running with inotify support) --停止某个服务 [root@em12cdb ~]# systemctl stop crond.service [root@em12cdb ~]# systemctl status crond.service crond.service - Command Scheduler Loaded: loaded (/usr/lib/systemd/system/crond.service; enabled) Active: inactive (dead) since Thu 2015-09-03 00:27:55 CST; 2s ago Main PID: 1245 (code=exited, status=0/SUCCESS) Jul 27 11:59:16 em12cdb systemd[1]: Started Command Scheduler. Jul 27 11:59:16 em12cdb crond[1245]: (CRON) INFO (RANDOM_DELAY will be scaled with factor 33% if used.) Jul 27 11:59:17 em12cdb crond[1245]: (CRON) INFO (running with inotify support) Sep 03 00:27:55 em12cdb systemd[1]: Stopping Command Scheduler... Sep 03 00:27:55 em12cdb systemd[1]: Stopped Command Scheduler. --启动某个服务 [root@em12cdb ~]# systemctl start crond.service [root@em12cdb ~]# systemctl status crond.service crond.service - Command Scheduler Loaded: loaded (/usr/lib/systemd/system/crond.service; enabled) Active: active (running) since Thu 2015-09-03 00:28:08 CST; 1s ago Main PID: 7294 (crond) CGroup: /system.slice/crond.service └─7294 /usr/sbin/crond -n Sep 03 00:28:08 em12cdb systemd[1]: Started Command Scheduler. Sep 03 00:28:08 em12cdb crond[7294]: (CRON) INFO (RANDOM_DELAY will be scaled with factor 56% if used.) Sep 03 00:28:09 em12cdb crond[7294]: (CRON) INFO (running with inotify support) Sep 03 00:28:09 em12cdb crond[7294]: (CRON) INFO (@reboot jobs will be run at computer's startup.) --重启某个服务 [root@em12cdb ~]# systemctl restart crond.service [root@em12cdb ~]# systemctl status crond.service crond.service - Command Scheduler Loaded: loaded (/usr/lib/systemd/system/crond.service; enabled) Active: active (running) since Thu 2015-09-03 00:28:24 CST; 2s ago Main PID: 7323 (crond) CGroup: /system.slice/crond.service └─7323 /usr/sbin/crond -n Sep 03 00:28:24 em12cdb systemd[1]: Starting Command Scheduler... Sep 03 00:28:24 em12cdb systemd[1]: Started Command Scheduler. Sep 03 00:28:24 em12cdb crond[7323]: (CRON) INFO (RANDOM_DELAY will be scaled with factor 61% if used.) Sep 03 00:28:24 em12cdb crond[7323]: (CRON) INFO (running with inotify support) Sep 03 00:28:24 em12cdb crond[7323]: (CRON) INFO (@reboot jobs will be run at computer's startup.) --检查某个服务是否开机启动 [root@em12cdb ~]# systemctl is-enabled crond.service enabled --禁止某个服务开机启动 [root@em12cdb ~]# systemctl disable crond.service rm '/etc/systemd/system/multi-user.target.wants/crond.service' [root@em12cdb ~]# systemctl is-enabled crond.service disabled --查看所有服务开机启动情况(这里使用了grep便于说明) [root@em12cdb ~]# systemctl list-unit-files --type service|grep cron crond.service disabled [root@em12cdb ~]# systemctl enable crond.service ln -s '/usr/lib/systemd/system/crond.service' '/etc/systemd/system/multi-user.target.wants/crond.service' [root@em12cdb ~]# systemctl list-unit-files --type service|grep cron crond.service enabled
systemctl命令修改启动模式
以前版本中,直接通过vi修改/etc/inittab文件
--多用户图形界面 [root@em12cdb ~]# systemctl get-default graphical.target --多用户字符界面 [root@em12cdb ~]# systemctl set-default multi-user.target rm '/etc/systemd/system/default.target' ln -s '/usr/lib/systemd/system/multi-user.target' '/etc/systemd/system/default.target' [root@em12cdb ~]# systemctl get-default multi-user.target