首页 文章 精选 留言 我的

精选列表

搜索[数据库脚本],共10028篇文章
优秀的个人博客,低调大师

Python DNS轮询监控脚本

!/usr/bin/python * coding:utf-8 * Filename:dns5.py import dns.resolver import os import httplib iplist=[] appdomain="www.baidu.com" def get_iplist(domain): try: A = dns.resolver.query(domain,'A') except Exception,e: print'dns resolver error:',str(e) return for i in A.response.answer: for j in i.items: iplist.append(j) return True def checkip(ip): checkurl=str(ip)+':80' getcontent="" httplib.socket.setdefaulttimeout(5) conn=httplib.HTTPConnection(checkurl) try: conn.request("GET","/",headers={"Host":appdomain}) r=conn.getresponse() getcontent=r.read(15) finally: if getcontent=="<!DOCTYPE html>": print ip," [OK]" else: print ip," [Error]" def main(): if get_iplist(appdomain) and len(iplist)>0: for ip in iplist: checkip(ip) else: print "dns resolver error."

优秀的个人博客,低调大师

spark启动简单脚本

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 #!/bin/bash #ThenextlinesareforchkconfigonRedHatsystems. #chkconfig:359802 #description:StartsandstopsxxxServer #autor:516249940@qq.com #date:2017-03-06 #ThenextlinesareforchkconfigonSuSEsystems. #/etc/init.d/xxx # ###BEGININITINFO #Provides:xxx #Required-Start:$network$syslog #Required-Stop: #Default-Start:235 #Default-Stop:06 #Short-Description:StartsandstopsxxxServer #Description:StartsandstopsxxxServer ###ENDINITINFO SPARK_SBIN= "/usr/local/spark/sbin" JAVA_ETC= "/etc/alternatives" case $1 in start) $SPARK_SBIN /start-all .sh ;; stop) $SPARK_SBIN /stop-all .sh ;; restart|reload|force-reload) $SPARK_SBIN /stop-all .sh sleep 3 $SPARK_SBIN /start-all .sh ;; status) #查看状态需要做的步骤 $JAVA_ETC /jps ;; *) echo "$0{start|stop|restart|status}" exit 4 ;; esac 本文转自 yanconggod 51CTO博客,原文链接:http://blog.51cto.com/yanconggod/1903574

资源下载

更多资源
Nacos

Nacos

Nacos /nɑ:kəʊs/ 是 Dynamic Naming and Configuration Service 的首字母简称,一个易于构建 AI Agent 应用的动态服务发现、配置管理和AI智能体管理平台。Nacos 致力于帮助您发现、配置和管理微服务及AI智能体应用。Nacos 提供了一组简单易用的特性集,帮助您快速实现动态服务发现、服务配置、服务元数据、流量管理。Nacos 帮助您更敏捷和容易地构建、交付和管理微服务平台。

Rocky Linux

Rocky Linux

Rocky Linux(中文名:洛基)是由Gregory Kurtzer于2020年12月发起的企业级Linux发行版,作为CentOS稳定版停止维护后与RHEL(Red Hat Enterprise Linux)完全兼容的开源替代方案,由社区拥有并管理,支持x86_64、aarch64等架构。其通过重新编译RHEL源代码提供长期稳定性,采用模块化包装和SELinux安全架构,默认包含GNOME桌面环境及XFS文件系统,支持十年生命周期更新。

Sublime Text

Sublime Text

Sublime Text具有漂亮的用户界面和强大的功能,例如代码缩略图,Python的插件,代码段等。还可自定义键绑定,菜单和工具栏。Sublime Text 的主要功能包括:拼写检查,书签,完整的 Python API , Goto 功能,即时项目切换,多选择,多窗口等等。Sublime Text 是一个跨平台的编辑器,同时支持Windows、Linux、Mac OS X等操作系统。

WebStorm

WebStorm

WebStorm 是jetbrains公司旗下一款JavaScript 开发工具。目前已经被广大中国JS开发者誉为“Web前端开发神器”、“最强大的HTML5编辑器”、“最智能的JavaScript IDE”等。与IntelliJ IDEA同源,继承了IntelliJ IDEA强大的JS部分的功能。

用户登录
用户注册