摘要:
# -*- coding: utf-8 -*- ''' Support for Nginx This module uses the manager webapp to manage Apache Nginx webapps. If the manager webapp is not configured some of the functions won't work. :configura...
阅读全文
posted @ 2019-05-30 10:14
slqt
阅读(262)
推荐(0)
编辑
摘要:
# -*- coding: utf-8 -*- """ Support for Activemq This module uses the manager webapp to manage Activemq. If the manager Activemq is not configured some of the functions won't work. :configuration: ...
阅读全文
posted @ 2019-05-30 10:13
slqt
阅读(256)
推荐(0)
编辑
摘要:
# coding: utf-8"""This module be able to manage ecs instances on the aliyun cloud. We choosesome helper functions from salt.cloud.clouds.aliyun since
阅读全文
posted @ 2019-05-30 10:06
slqt
阅读(397)
推荐(0)
编辑
摘要:
1、配置两台Mysql主主同步 [root@master ~]# yum install mysql-server mysql -y [root@master ~]# service mysqld start [root@master ~]# mysqladmin -u root password
阅读全文
posted @ 2019-05-29 16:54
slqt
阅读(242)
推荐(0)
编辑
摘要:
DELETE FROM dashboard_issues WHERE id NOT IN (SELECT temp.min_id FROM (SELECT MAX(id) min_id FROM dashboard_issues GROUP BY code )AS temp); 把数据库:test(
阅读全文
posted @ 2019-05-23 15:45
slqt
阅读(183)
推荐(0)
编辑
摘要:
接口参考openstack文档启动虚拟机 def start_vm_new(openstack_auth=None, user_auth=None,vm_info=None, project_info=None,region=None,**kwargs): try: data = {"os-start": None} vmid = getopenstack...
阅读全文
posted @ 2019-05-23 10:03
slqt
阅读(404)
推荐(0)
编辑
摘要:
# -*- coding: utf-8 -*- from tencentcloud.common import credential from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException from tencentcloud.cvm.v20170312 impo...
阅读全文
posted @ 2019-05-23 09:54
slqt
阅读(794)
推荐(0)
编辑
摘要:
chown -R oracle:oinstall /opt/databasechmod -R 755 /opt/database su - oracle <<!/opt/database/runInstaller -silent -responseFile /home/oracle/enterpri
阅读全文
posted @ 2019-05-22 18:01
slqt
阅读(434)
推荐(0)
编辑
摘要:
#!/bin/bash os_user= os_password= hosts=' '#多个ip用空格分隔 id $os_user >/dev/null || exit 1 #获取用户家目录 user_home=$(grep -w $os_user /etc/passwd |cut -d : -f 6) # 生成ssh从stdin读取免密的脚本 cat > /tmp/pass /de...
阅读全文
posted @ 2019-05-22 17:54
slqt
阅读(256)
推荐(0)
编辑
摘要:
安装sdk import os import zipfile import commands cmd='cd {};cd ksc-sdk-python-master;{} setup.py install'.format(dst_dir,python_path) print cmd res=commands.getstatusoutput(cmd) if res[0]: print re...
阅读全文
posted @ 2019-05-22 17:43
slqt
阅读(270)
推荐(0)
编辑