上一页 1 ··· 9 10 11 12 13 14 下一页
摘要: 一、关闭NetworkManager.service服务,并且禁止开机启动[root@localhost ~]# systemctl stop NetworkManager.service[root@localhost ~]# systemctl disable NetworkManager.ser 阅读全文
posted @ 2018-01-02 10:57 風£飛 阅读(646) 评论(0) 推荐(0) 编辑
摘要: 常用符号~ 登陆用户当前的家目录 . 当前目录.. 当前目录的上一级目录cd - 返回上一次的目录; 命令分隔符# 表示注释 ? 通配符中表示任意一个字符* 通配符中表示任意字符$ 获取变量内容 ` `和$( ) 都是取命令运行后的结果 && 表示且的关系 || 表示或的关系 ! 表示非的关系(fi 阅读全文
posted @ 2017-12-26 11:15 風£飛 阅读(216) 评论(0) 推荐(0) 编辑
摘要: local ipaddress:10.47.39.7;remote ipaddress:10.47.39.8 1、生成公钥和私钥 [root@local ~]# ssh-keygen -t rsa #一路回车 [root@local ~]# ssh-keygen -t rsa -P "" -N '' 阅读全文
posted @ 2017-12-25 17:15 風£飛 阅读(331) 评论(0) 推荐(0) 编辑
摘要: 一、利用openssl生成自签名证书1、进入你想创建证书和私钥的目录[root@web ~]# cd /application/nginx/key 2、创建服务器私钥,命令会让你输入一个口令:[root@web key]# openssl genrsa -des3 -out server.key 2 阅读全文
posted @ 2017-12-18 16:42 風£飛 阅读(279) 评论(0) 推荐(0) 编辑
摘要: 一、下载链接地址: https://dev.mysql.com/downloads/mysql/ #下载完成后直接解压即可 二、windows下初始化MySQL 1、把MySQL的解压路径加入到系统环境变量中 2、把MySQL设置为windows服务 C:\Users\test>mysqld --i 阅读全文
posted @ 2017-12-14 16:43 風£飛 阅读(1028) 评论(0) 推荐(0) 编辑
摘要: sh test.sh、source test.sh与. test.sh(./test.sh)执行命令的区别:sh是启用子shell执行而source与.(点)是在当前窗口执行unset A:清除变量中存储的内容系统环境变量配置文件执行顺序:/etc/profile >/etc/profile.d/ 阅读全文
posted @ 2017-12-14 16:00 風£飛 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 函数的返回值用return,脚本的返回值用exit shell函数只允许返回数字,若不是则报line 6: return: num: numeric argument required;若是写了return,则返回return语句后跟的数值,若是没有return语句则返回最后一个命令的执行结果 Sh 阅读全文
posted @ 2017-12-14 15:55 風£飛 阅读(369) 评论(0) 推荐(0) 编辑
摘要: [root@web01 scripts]# man console_codesecho -e "\033[背景颜色;字体颜色m字符串\033[0m",例:echo -e "\033[41;36m something here \033[0m"注: 1、背景颜色和字体颜色之间是英文的“;” 2、文字颜 阅读全文
posted @ 2017-12-14 15:36 風£飛 阅读(658) 评论(0) 推荐(0) 编辑
摘要: [root@nginx ~]# sh /etc/scripts/process.sh #!/bin/bash FILENAME=`basename $0 .sh` #获取脚本文件名称,不包含.sh后缀 FILEPATH=`dirname $0` echo "PID of this script: $ 阅读全文
posted @ 2017-12-14 15:23 風£飛 阅读(299) 评论(0) 推荐(0) 编辑
摘要: lnmp和lamp架构搭建一键安装脚本下载地址:https://lnmp.org/download.html https://github.com/teddysun/lamp/tree/master官方模板下载地址:https://share.zabbix.com/;https://github.c 阅读全文
posted @ 2017-12-12 12:05 風£飛 阅读(860) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 下一页