1.3. ezhost.ServerCommon

This class is used for create the common command such as mysql install, nginx install and so on..

Author: Zhe Xiao Github: https://github.com/zhexiao/ezhost.git

class ezhost.ServerCommon.ServerCommon[source]

All common function will create inside this class.

add_spark_slave(master, slave, configure)[source]

add spark slave :return:

common_config_nginx_ssl()[source]

Convert nginx server from http to https

common_install_apache2()[source]

Install apache2 web server

common_install_mysql()[source]

Install mysql

common_install_nginx()[source]

Install nginx

common_install_python_env()[source]

Install python virtualenv

common_update_sys()[source]

update system package

elastic_config()[source]

config elasticsearch :return:

elastic_install()[source]

elasticsearch install :return:

generate_ssh(server, args, configure)[source]

异步同时执行SSH生成 generate ssh :param server: :param args: :param configure: :return:

hadoop_install()[source]

install hadoop :return:

java_install()[source]

install java :return:

kafka_config()[source]

kafka config :return:

kafka_install()[source]

kafka download and install :return:

kibana_config()[source]

config kibana :return:

kibana_install()[source]

kibana install :return:

logstash_config()[source]

config logstash :return:

logstash_install()[source]

logstash install :return:

reset_server_env(server_name, configure)[source]

reset server env to server-name :param server_name: :param configure: :return:

spark_config()[source]

config spark :return:

spark_install()[source]

download and install spark :return:

systemctl_autostart(service_name, start_cmd, stop_cmd)[source]

ubuntu 16.04 systemctl service config :param service_name: :param start_cmd: :param stop_cmd: :return:

update_source_list()[source]

update ubuntu 16 source list :return: