linux 使用trap命令进行调试 Shell脚本在搪行时,会产生三个所谓的伪信号。三种伪信号如下:信号名称 产生条件EXIT 从函数中退出,或者整个脚本执行完毕ERR 当一条命令返回非零状态码,即命令执行不成功DEBUG 脚本中的每一条命令执行之前 vi trapdebug.sh #!/bin/ ...
分类:
系统相关 时间:
2021-04-14 12:02:07
阅读次数:
0
打开命令行,依次输入以下名利即可 cd ~/.ssh ls cat id_rsa.pub 或者 vim id_rsa.pub 以ssh-rsa开头,用户名结尾的这一整段内容,就是我们需要的ssh公钥了 ...
分类:
其他好文 时间:
2021-04-14 11:59:31
阅读次数:
0
打开/etc/mysql/mysql.cnf 找到bind-address= 127.0.0.1 把它改成 bind-address= 0.0.0.0 (mysql5.7.24版本,配置文件目录是:/etc/mysql/mysql.conf.d/mysqld.cnf) 命令:service mysq ...
分类:
数据库 时间:
2021-04-14 11:58:38
阅读次数:
0
1、下载、解压 2、安装nginx需要的依赖 yum install -y gcc-c++ yum install -y pcre yum install -y pcre-devel yum install -y zlib yum install -y zilb-devel yum install ...
分类:
系统相关 时间:
2021-04-14 11:56:59
阅读次数:
0
MeterSphere 一站安装部署 环境要求 操作系统: CentOS 7.x CPU/内存: 4核8G 磁盘空间: 50G 可访问互联网 1)一键安装 以 root 用户执行如下命令一键安装 MeterSphere: curl -sSL https://github.com/meterspher ...
分类:
其他好文 时间:
2021-04-14 11:56:25
阅读次数:
0
详见:https://www.cnblogs.com/liyuanhong/articles/14653178.html 1、监控cpu w top htop uptime glances ps 2、监控内存 free glances top htop 3、监控磁盘 df glances iotop ...
分类:
其他好文 时间:
2021-04-14 11:52:58
阅读次数:
0
参考链接:https://zhidao.baidu.com/question/1050060872001279699.html Win10管理和优化开机启动项的方法。: 一、管理开机启动项 与Windows7以及之前的系统不同,在Windows8以及之后的Windows 8.1和Windows10系 ...
一个有参数但无提示说明的脚本#login1.sh: 用户登录,判断用户输入的用户名和密码是否错误 vi login1.sh #!/bin/bash for ((i=0; i < 3; i++))do read username read password if test "$username" = ...
分类:
系统相关 时间:
2021-04-14 11:41:38
阅读次数:
0
Debian软件包通常为预编译的二进制格式的扩展名".deb",类似rpm文件,因此安装快速,无需编译软 件。包文件包括特定功能或软件所必需的文件、元数据和指令 dpkg:package manager for Debian,类似于rpm, dpkg是基于Debian的系统的包管理器。可 以安装,删 ...
分类:
系统相关 时间:
2021-04-13 12:54:26
阅读次数:
0
一、Golang开发环境搭建 1.下载安装jetbrain Goland IDE 下载地址:https://www.jetbrains.com/go/download/#section=windows 2.安装golang编译器 下载地址:https://golang.google.cn/doc/i ...
分类:
其他好文 时间:
2021-04-13 12:35:02
阅读次数:
0