标签云
asm恢复 bbed bootstrap$ dul In Memory kcbzib_kcrsds_1 kccpb_sanity_check_2 MySQL恢复 ORA-00312 ORA-00607 ORA-00704 ORA-00742 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)
- 操作系统 (103)
- 数据库 (1,701)
- DB2 (22)
- MySQL (74)
- Oracle (1,562)
- Data Guard (52)
- EXADATA (8)
- GoldenGate (24)
- ORA-xxxxx (159)
- ORACLE 12C (72)
- ORACLE 18C (6)
- ORACLE 19C (15)
- ORACLE 21C (3)
- Oracle 23ai (8)
- Oracle ASM (68)
- Oracle Bug (8)
- Oracle RAC (53)
- Oracle 安全 (6)
- Oracle 开发 (28)
- Oracle 监听 (28)
- Oracle备份恢复 (571)
- Oracle安装升级 (94)
- Oracle性能优化 (62)
- 专题索引 (5)
- 勒索恢复 (81)
- 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)
-
最近发表
- fio测试io,导致磁盘文件系统损坏故障恢复
- ORA-742 写丢失常见bug记录
- Oracle 19c 202501补丁(RUs+OJVM)
- 避免 19c 数据库性能问题需要考虑的事项 (Doc ID 3050476.1)
- Bug 21915719 Database hang or may fail to OPEN in 12c IBM AIX or HPUX Itanium – ORA-742, DEADLOCK or ORA-600 [kcrfrgv_nextlwn_scn] ORA-600 [krr_process_read_error_2]
- ORA-600 ktuPopDictI_1恢复
- impdp导入数据丢失sys授权问题分析
- impdp 创建index提示ORA-00942: table or view does not exist
- 数据泵导出 (expdp) 和导入 (impdp)工具性能降低分析参考
- 19c非归档数据库断电导致ORA-00742故障恢复
- Oracle 19c – 手动升级到 Non-CDB Oracle Database 19c 的完整核对清单
- sqlite数据库简单操作
- Oracle 暂定和恢复功能
- .pzpq扩展名勒索恢复
- Oracle read only用户—23ai新特性:只读用户
- 迁移awr快照数据到自定义表空间
- .hmallox加密mariadb/mysql数据库恢复
- 2025年首个故障恢复—ORA-600 kcbzib_kcrsds_1
- 第一例Oracle 21c恢复咨询
- ORA-15411: Failure groups in disk group DATA have different number of disks.
标签归档: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