12 2017 档案

摘要:一、安装tomcat1、软件准备JDK下载:http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html JDK各版本下载:https://www.oracle.com/java/technol 阅读全文
posted @ 2017-12-26 18:40 風£飛 阅读(16) 评论(0) 推荐(0) 编辑
摘要:一、安装EPEL仓库https://centos.pkgs.org/6/epel-x86_64/openvpn-2.4.4-1.el6.x86_64.rpm.htmlwget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.n 阅读全文
posted @ 2017-12-26 12:00 風£飛 阅读(13) 评论(0) 推荐(0) 编辑
摘要:常用符号~ 登陆用户当前的家目录 . 当前目录.. 当前目录的上一级目录cd - 返回上一次的目录; 命令分隔符# 表示注释 ? 通配符中表示任意一个字符* 通配符中表示任意字符$ 获取变量内容 ` `和$( ) 都是取命令运行后的结果 && 表示且的关系 || 表示或的关系 ! 表示非的关系(fi 阅读全文
posted @ 2017-12-26 11:15 風£飛 阅读(237) 评论(0) 推荐(0) 编辑
摘要:http://www.nongnu.org/quagga/http://os.51cto.com/art/201410/453623.htmQuagga:软件包含有几个协同运行的后台程序。我们在本教程中将着重介绍设置下列后台程序Zebra:核心后台程序,负责内核接口和静态路由Ospfd:IPv4 O 阅读全文
posted @ 2017-12-26 10:40 風£飛 阅读(9) 评论(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 風£飛 阅读(358) 评论(0) 推荐(0) 编辑
摘要:首先使用 spawn 开启一个会话,然后使用 expect-send 对来执行交互式操作。 spawn 后面跟上一个命令操作,表示开启一个会话。expect 等待输出特定的字符串(通常是提示符),然后使用send 发送交互字符串。 例如:spawn ssh username@host #远程登录支持 阅读全文
posted @ 2017-12-19 15:18 風£飛 阅读(10) 评论(0) 推荐(0) 编辑
摘要:源码安装:一. Tcl 安装 主页: http://www.tcl.tk下载地址: http://www.tcl.tk/software/tcltk/downloadnow84.tml 1.下载源码包wget http://nchc.dl.sourceforge.net/sourceforge/tc 阅读全文
posted @ 2017-12-19 13:47 風£飛 阅读(13) 评论(0) 推荐(0) 编辑
摘要:一、SELECT语句关键字的执行顺序 ⑦ select ⑧ distinct <select_list> #去除重复 ① from <left_table> ③ <join_type> join <right_table> ② on <join_condition> ④ where <where_c 阅读全文
posted @ 2017-12-19 10:38 風£飛 阅读(11) 评论(0) 推荐(0) 编辑
摘要:1、使用文件导入数据 创建文件init.sql文件内容为(也可在Mysql直接复制粘贴文件内容) /* 数据导入: Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Se 阅读全文
posted @ 2017-12-19 09:54 風£飛 阅读(7) 评论(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 風£飛 阅读(296) 评论(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 風£飛 阅读(1040) 评论(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 風£飛 阅读(277) 评论(0) 推荐(0) 编辑
摘要:函数的返回值用return,脚本的返回值用exitshell函数只允许返回数字,若不是则报line 6: return: num: numeric argument required;若是写了return,则返回return语句后跟的数值,若是没有return语句则返回最后一个命令的执行结果 1、函 阅读全文
posted @ 2017-12-14 15:55 風£飛 阅读(380) 评论(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 風£飛 阅读(676) 评论(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 風£飛 阅读(322) 评论(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 風£飛 阅读(962) 评论(0) 推荐(0) 编辑
摘要:一、limit:速率限制-m limit 说明:--limit 1000/s #设置最大平均匹配速率--limit 5/m --limit-burst 15 #表示一开始能匹配的数据包数量为15个,每匹配到一个,limit-burst的值减1,所以匹配到15个时,该值为0,每过12s,limit-b 阅读全文
posted @ 2017-12-08 09:58 風£飛 阅读(1285) 评论(0) 推荐(0) 编辑
摘要:root> show configuration | display set 配置按set行显示,查看的配置为未commit的配置(commit check)root# set system services ssh 全局开启SSH服务root# set system root-authentica 阅读全文
posted @ 2017-12-07 14:53 風£飛 阅读(579) 评论(0) 推荐(0) 编辑
摘要:1、邮件发送配置[root@Zabbix ~]# yum -y install mail #如有mail命令则不用安装[root@Zabbix ~]# vim /etc/mail.rc# Display the recipients of messages sent by the user hims 阅读全文
posted @ 2017-12-07 14:21 風£飛 阅读(393) 评论(0) 推荐(0) 编辑
摘要:更改squid错误页面时间不对的问题解压源码包,进入此路径/usr/local/squid/share/errors/zh-cn(需要更改该目录下的所有文件find -type f |xargs sed -i 's#%T#%t#g'),编辑ERR_ACCESS_DENIED文件 Squid命令常用参 阅读全文
posted @ 2017-12-07 11:38 風£飛 阅读(765) 评论(0) 推荐(0) 编辑
摘要:https://www.bhzhu203.com/2016/11/11/centos%E5%AE%89%E8%A3%85cisco-ipsec-vpn%E6%96%B9%E5%BC%8F/http://sunweiwei.com/1948/ Point_to_Point_IPSEC配置Cisco_R 阅读全文
posted @ 2017-12-07 11:34 風£飛 阅读(13) 评论(0) 推荐(0) 编辑
摘要:1. 设置IP地址、网关ee /etc/rc.conf ifconfig_em0="inet 192.168.21.173 netmask 255.255.255.0" #设置IP地址,子网掩码defaultrouter="192.168.21.2" #设置网关hostname="FreeBSD" 阅读全文
posted @ 2017-12-07 11:11 風£飛 阅读(643) 评论(0) 推荐(0) 编辑
摘要:FreeBSD路由协议配置root@BSD:~ # pkg install quaggaroot@BSD:/usr/local/share/examples/quagga # lsbgpd.conf.sample ospfd.conf.sample vtysh.conf.samplebgpd.con 阅读全文
posted @ 2017-12-07 10:54 風£飛 阅读(7) 评论(0) 推荐(0) 编辑
摘要:FreeBSD使用手册 root@BSD:~ # bsdconfig root@BSD:~ # bsdinstallroot@BSD:~ # ee /etc/ssh/sshd_config #开启root用户密码登陆PermitRootLogin yesPasswordAuthentication 阅读全文
posted @ 2017-12-07 10:51 風£飛 阅读(593) 评论(0) 推荐(0) 编辑
摘要:1、下载需要的echo模块https://github.com/openresty/echo-nginx-module/tags# wget https://github.com/openresty/echo-nginx-module/archive/v0.60.tar.gz# tar zxvf v 阅读全文
posted @ 2017-12-07 10:42 風£飛 阅读(1654) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示