摘要: 报错信息: ERROR][http-nio-8888-exec-1] - Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing fai 阅读全文
posted @ 2018-04-12 10:09 浩0x208哥 阅读(1078) 评论(0) 推荐(0) 编辑
摘要: 解决办法: echo “unset MAILCHECK” >> /etc/profile source /etc/profile 这样就可以了!!!!!!!!!! 阅读全文
posted @ 2018-04-10 19:06 浩0x208哥 阅读(520) 评论(0) 推荐(0) 编辑
摘要: #!/bin/shLOG_PATH=/home/test/nginx/logsNEW_LOG_PATH=/home/test/nginx/dayslogNGING_PID=$(cat /home/test/nginx/logs/nginx.pid) #这步没用DATE=$(date -d "yest 阅读全文
posted @ 2018-04-04 11:03 浩0x208哥 阅读(120) 评论(0) 推荐(0) 编辑
摘要: tar xf postgresql-9.4.5.tar.gz cd postgresql-9.4.5 yum grouplist yum grouplist|grep Deve yum groupinstall Development tools ./configure --prefix=/test 阅读全文
posted @ 2018-04-03 11:40 浩0x208哥 阅读(120) 评论(0) 推荐(0) 编辑
摘要: wget http://download.redis.io/releases/redis-3.0.6.tar.gz为了方便管理,将Redis文件中的conf配置文件和常用命令移动到统一文件中[root@localhost test]# pwd/home/test[root@localhost tes 阅读全文
posted @ 2018-04-03 11:25 浩0x208哥 阅读(141) 评论(0) 推荐(0) 编辑
摘要: #coding=utf-8a = 'haha'a = "hao"print(a)s = 'Hello World!'print(s.swapcase()) #大写变小写,小写变大写print(s.capitalize()) #只是首字母变大写,其他都小写# print(s.casefold()) # 阅读全文
posted @ 2018-04-02 15:28 浩0x208哥 阅读(2291) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/python#-*-coding:UTF-8-*- import smtplibimport timeimport os from email.mime.text import MIMETextfrom email.mime.multipart import MIMEMulti 阅读全文
posted @ 2018-04-02 15:20 浩0x208哥 阅读(280) 评论(0) 推荐(0) 编辑
摘要: ######################非固定参数################## #第一种方式:def send_alert(msg,*users):##*users 是非固定参数,将传过来的参数打包成元祖, for u in users: print("报警发送给:",u)send_al 阅读全文
posted @ 2018-04-02 14:59 浩0x208哥 阅读(423) 评论(0) 推荐(0) 编辑
摘要: ######################################################### 模块time ####################################### 多用于时间戳与字符串的转换 import timeprint(time.time()) # 阅读全文
posted @ 2018-03-30 14:00 浩0x208哥 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 系统:centos 6.5 JDK:1.8 Elasticsearch-6.0.0Logstash-6.0.0kibana-6.0.0zookeeper-3.5.3kafka_2.12-1.0.0filebeat-6.0.0 wget https://artifacts.elastic.co/dow 阅读全文
posted @ 2018-03-27 18:38 浩0x208哥 阅读(1578) 评论(0) 推荐(0) 编辑