uname:命令来显示操作系统相关的信息。 语法格式:uname 【选项】 命令选项: -a 显示操作系统全部信息 -m 显示CPU类型,是32位还是64位 -n 显示操作系统的主机名 -s 显示操作系统名称 -r 显示操作系统内核 -v 显示操作系统的版本 uptime:命令用来输出系统任务队列信 ...
分类:
系统相关 时间:
2021-01-20 11:58:30
阅读次数:
0
1.先将MySQL停止、 命令:systemctl stop mysqld #停掉MySQL 命令:systemctl status mysqld #查看状态 2.然后跳过授权表启动MySQL服务程序 这一步主要利用mysqld的 --skip-grant-tables选项 修改my.cnf配置,添 ...
分类:
数据库 时间:
2021-01-18 11:38:24
阅读次数:
0
ssh远程管理服务 1.1 ssh介绍 ssh远程管理服务 默认linux是安装了的,如果没有安装执行以下命令。 [root@linux-server ~]# yum install -y openssh* [root@linux-server ~]# systemctl start sshd op ...
分类:
其他好文 时间:
2021-01-18 11:03:05
阅读次数:
0
在centos6中的开机默认开机状态保存在/etc/inittab文件中,那centos7中会不会发生变化呢,我们不妨同样地查看centos7中的/etc/inittab文件: 1. systemctl get-default 2. systemctl set-default multi-user. ...
分类:
其他好文 时间:
2021-01-14 10:32:26
阅读次数:
0
实验题目: 实验 3 Linux C 编程 实验目的和要求: 熟悉 Linux 操作系统环境 在 Linux 下编写、执行简单的 C 程序 用 C 语言写自己的 Linux 命令 实验过程: 认真阅读Lab Manual的第7-8章,在实验室的计算机或自己的个人计算机上练习在Linux环境下进行C编 ...
分类:
系统相关 时间:
2021-01-13 11:20:59
阅读次数:
0
edit config && add Port 2222 vi /etc/ssh/sshd_config 重启ssh服务 systemctl restart sshd.service 查看端口 sudo netstat -atlunp | grep sshd ...
分类:
系统相关 时间:
2021-01-13 10:51:14
阅读次数:
0
docker开机自启设置 命令:systemctl enable docker.service docker容器的开机自启 在使用docker run启动容器时,使用--restart参数来设置 例:# docker run -d --name mysql -p 3306:3306 --restar ...
分类:
其他好文 时间:
2021-01-11 10:57:00
阅读次数:
0
查看服务运行状态 [root@room4pc09 桌面]# systemctl status crond #查看服务运行状态 ● crond.service - Command Scheduler Loaded: loaded (/usr/lib/systemd/system/crond.servi ...
分类:
其他好文 时间:
2021-01-07 12:21:11
阅读次数:
0
- name: 以轮询的方式等待服务同步完成 shell: "systemctl status etcd.service|grep Active" register: etcd_status until: '"running" in etcd_status.stdout' retries: 8 de ...
分类:
其他好文 时间:
2021-01-07 11:40:27
阅读次数:
0
实用技能:60个常用的Linux命令 ●查看硬件信息相关命令(8个) ifconfig free fdisk ethtool mii-tool dmidecode dmesg lspci ●其它(19个) echo printf rpm yum watch alias unalias date cl ...
分类:
系统相关 时间:
2021-01-06 12:19:17
阅读次数:
0