shell脚本批量设置mysql5.7 root密码
#!/bin/bash read -p "Enter mysql password": newpasswd sed -i "s/rocdk890/$newpasswd/g" /etc/init.d/mysqld_multi chmod +x /etc/init...
#!/bin/bash read -p "Enter mysql password": newpasswd sed -i "s/rocdk890/$newpasswd/g" /etc/init.d/mysqld_multi chmod +x /etc/init...
#!/bin/sh PATH=/bin:/sbin:/usr/bin:/usr/sbin:/opt/bin:/opt/sbin:~/bin export PATH # Check the network status NET_NUM=`ping -c 4 www.baidu.com |awk '/pac...
#!/bin/bash PATH=/bin:/sbin:/usr/bin:...
Mar 03, 2017 11:20:12 AM org.apache.catalina.util.SessionIdGeneratorBase createSecureRandom INFO: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [342,445] milliseconds.
#!/bin/bash PATH=/bin:/sbin:/usr/bin:/usr/sbin:/opt/bin:/opt/sbin:~/bin export PATH # Check if user is root if [ $(id -u) != "0"...
#!/usr/bin/env python #coding=utf-8 import os,datetime,pyinotify,logging class MyEventHandler(pyinoti...
# 修改默认的端口 Port 18330 # 使用version2 Protocol 2 # 发起连接后到成功登录之间的timeout为60s LoginGraceTime 60 # 禁止root登录 PermitRootLogin no StrictModes yes PermitE...
#!/bin/bash PATH=/bin:/sbin:/usr/bin:/usr/sbin:/opt/bin:/opt/sbin:~/bin export PATH # Check if user is root if [ $(id -u) != "0" ]; then echo "...
Ciphers aes128-cbc,aes19...
#!/bin/sh #Created by rocdk890 log_path="/var/log/" #日志记录的目录地址 log_file="svn.log" #默认日志文件名称 log_file_new=${log_path}${log_file}-$(date +%Y%m%d)...
这篇文章在原作者的代码基础上稍微进行了下修改,让其完全满足我们svn结构的,使其能够远程同步到另外一台服务器上.
svn服务器ip:10.168.227.xx
项目web服务器:10.27.2.xx
svn代码库:svn://10.168.227.xx/slogra/branches/dev_whdysp2017spring/
项目web服务器代码根目录:/data/www/vhosts
先来看svn钩子里的内容:
cd /home/svn/slogra/hooks/
vi post-commit
...
#!/bin/bash mysql_user="root" mysql_pass="password" my...