随笔分类 - linux
摘要:一、关机重启 shutdown -h now 立刻关机shutdown -h 5 5分钟后关机poweroff 立刻关机shutdown -r now 立刻重启shutdown -r 5 5分钟后重启reboot 立刻重启 二、目录操作 pwd 查看当前工作目录clear 清除屏幕cd ~ 当前用户
阅读全文
摘要:1. 简单系统常用命令 # 查看ip地址 ip a ip addr # ping网络(测试网络连通) ip 目标机器的ip # 查看系统时间 date # 注销 logout # 关机 shutdown now # 重启 reboot # 清屏 clear 2. linux文件系统 Linux 含义
阅读全文
摘要:1. Get方式示例 curl --header "Authorization: 62b94903e4b0e57be39dbfc4" --insecure -X GET 'https://域名/third/cmdb/api/model/list?page=1&pageSize=10' 2. Post
阅读全文
摘要:linux centos7 默认防火墙是关闭的,设置了开启端口后一定要重启防火墙,否则端口开启会不起作用 查看已开启的端口 firewall-cmd --list-ports 查看防火墙状态 firewall-cmd --state 开启防火墙 systemctl start firewalld 开
阅读全文
摘要:前言: 最近在使用虚拟机的时候, 每次重启或者网络发生变化都容易导致虚拟机的ip发生变化, 使用nginx服务或者客户端链接工具xshell连接时都需要重新设置ip 解决方案: 1 查看当前网卡名称 ifconfig 或ip addr, 网卡名称是ens33 2 编辑网卡配置: 2.1 配置之前的网
阅读全文