2019-05-06 06:51:53    21    0    0

安装samba

  1. yum -y install samba samba-client

配置

  1. cd /etc/samba/
  2. 备份smb.conf
  3. cp smb.conf smb.conf.origin
  4. vim smb.conf
  5. service smb restart
  6. smbpasswd -a root
  7. vi /etc/samba/smbusers
  8. root = admin xxx bbb

smb.conf

  1. [global]
  2. interfaces = lo eth0 eth1
  3. log file = /var/log/samba/log.%m
  4. max log size = 50
  5. netbios name = SMBSERVER
  6. printcap name = cups
  7. security = USER
  8. server string = Samba Server Version %v
  9. smb passwd file = /etc/samba/smbpasswd
  10. username map = /etc/samba/smbusers
  11. idmap config * : backend = tdb
  12. cups options = raw
  13. max connections = 10
  14. [ossdata]
  15. admin users = root
  16. browseable = No
  17. comment = ossdata Directories
  18. inherit acls = Yes
  19. path = /ossdata/samba
  20. read only = No
  21. valid users = %S %D%w%S
  22. write list = root
  23. [printers]
  24. browseable = No
  25. comment = All Printers
  26. create mask = 0600
2019-05-06 06:51:53    20    0    0

配置NFS SERVER

  1. yum -y install nfs-utils
  2. vi /etc/idmapd.conf
  3. # line 5: uncomment and change to your domain name
  4. Domain = vdevops.org
  5. vi /etc/exports
  6. # write settings for NFS exports
  7. /home 10.1.1.0/24(rw,no_root_squash)
  8. systemctl start rpcbind nfs-server
  9. systemctl enable rpcbind nfs-server
  10. showmount -e #查看NFS共享的目录
  11. #防火墙开启情况下,做如下配置
  12. firewall-cmd --add-service=nfs --permanent
  13. firewall-cmd --reload
2019-05-06 06:51:53    20    0    0

安装ossfs

  1. wget http://docs-aliyun.cn-hangzhou.oss.aliyun-inc.com/assets/attach/32196/cn_zh/1527232195135/ossfs_1.80.5_centos7.0_x86_64.rpm?spm=a2c4g.11186623.2.6.WVXUpG&file=ossfs_1.80.5_centos7.0_x86_64.rpm
  2. yum localinstall ossfs_1.80.5_centos7.0_x86_64.rpm

设置AccessKeyId

设置bucket name 和 AccessKeyId/Secret信息,将其存放在/etc/passwd-ossfs 文件中,注意这个文件的权限必须正确设置,建议设为640。

  1. echo my-bucket:my-access-key-id:my-access-key-secret > /etc/passwd-ossfs
  2. chmod 640 /etc/passwd-ossfs

将OSS bucket mount到指定目录。

  1. ossfs my-bucket my-mount-point -ourl=my-oss-endpoint

示例

  1. echo my-bucket:faint:123 > /etc/passwd-ossfs
  2. chmod 640 /etc/passwd-ossfs
  3. mkdir /tmp/ossfs
  4. ossfs my-bucket /tmp/ossfs -ourl=http://oss-cn-hangzhou.aliyuncs.com
2019-05-06 06:51:53    31    0    0

Installing Presto

Download the Presto server tarball

https://repo1.maven.org/maven2/com/facebook/presto/presto-server/0.203/presto-server-0.203.tar.gz

and unpack it. The tarball will contain a single top-level directory, presto-server-0.203, which we will call the installation directory.

Configuring Presto

Create an etc directory inside the installation directory. This will hold the following configuration:

  • Node Properties: environmental configuration specific to each node
  • JVM Config: command line options for the Java Virtual Machine
  • Config Properties: configuration for the Presto server
  • Catalog Properties: configuration for Connectors (data sources)

Node Properties

The node properties file, etc/node.properties, contains configuration specific to each node. A node is a single installed instance of Presto on a machine. This file is typically created by the deployment system when Presto is first installed. The follow

2019-05-06 06:51:53    21    0    0

Elasticsearch

installation

Elasticsearch requires at least Java 8

  1. java -version
  2. echo $JAVA_HOME
  3. curl -L -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.1.0.tar.gz
  4. tar -xvf elasticsearch-6.1.0.tar.gz
  5. cd elasticsearch-6.1.0/bin
  6. //install x-pack
  7. bin/elasticsearch-plugin install x-pack

configuration

  1. cluster.name: cluster-01
  2. node.name: node-01
  3. path.data: /home/elk/elasticsearch-6.1.0/data
  4. path.logs: /home/elk/elasticsearch-6.1.0/logs
  5. network.host: 0.0.0.0
  6. http.port: 9200
  7. discovery.zen.ping.unicast.hosts: ["103.29.70.96","139.162.88.149"]
  8. discovery.zen.minimum_master_nodes: 2

starting

  1. ./elasticsearch -d -p pidfile
  2. tail -100f ../logs/cluster-01.log

Set the passwords for all built-in users

  1. bin/x-pack/setup-passwords interactive
  2. Enter password for [elastic]:
  3. Reenter password for [elastic]:
  4. Enter password for [kibana]:
  5. Reenter password for [kibana]:
  6. Enter password for [logstash_system]:
  7. Reenter password for [logsta
2019-05-06 06:51:53    37    0    0

Zookeeper注册中心安装

Zookeeper安装

Simple 监控中心安装

  1. wget wget https://codeload.github.com/alibaba/dubbo/tar.gz/dubbo-2.5.7
  2. tar zxvf dubbo-2.5.7
  3. cd dubbo-dubbo-2.5.7/
  4. mvn -Dmaven.test.skip=true clean install
  5. find . -name dubbo-monitor-simple*gz
  6. mkdir ~/dubbo-monitor
  7. mv ./dubbo-simple/dubbo-monitor-simple/target/dubbo-monitor-simple-2.5.7-assembly.tar.gz ~/dubbo-monitor
  8. cd ~/dubbo-monitor
  9. ./dubbo-simple/dubbo-monitor-simple/target/dubbo-monitor-simple-2.5.7-assembly.tar.gz
  10. tar zxvf dubbo-monitor-simple-2.5.7-assembly.tar.gz
  11. cd dubbo-monitor-simple-2.5.7
  12. #修改配置
  13. vi conf/dubbo.properties
  14. dubbo.registry.address=zookeeper://112.74.198.224:21888
  15. dubbo.protocol.host=0.0.0.0
  16. #启动
  17. cd bin
  18. ./start.sh
  19. ./bin/start.sh debug
  20. #总控入口:
  21. ./bin/server.sh start
  22. ./bin/server.sh stop
  23. ./bin/server.sh restart
  24. ./bin/server.sh debug
  25. ./bin/server.sh dump
  26. #命令行
  27. telnet 127.0.0.1 7070
  28. help
  29. echo status | nc -i 1 127.0.0.1 7070
  30. #访问
  31. http://127.0.0.1:8080

dubbo管理控制台

  1. find . -name dubbo-admin*war
  2. w
2019-05-06 06:51:53    10    0    0
2019-05-06 06:51:53    19    0    0

下载安装

  1. https://nchc.dl.sourceforge.net/project/pentaho/Data%20Integration/7.1/pdi-ce-7.1.0.0-12.zip
  2. unzip pdi-ce-7.1.0.0-12.zip

carte

  1. 启动carte web服务器
  2. ./carte.sh 127.0.0.1 8081
  3. 密码文件

spoon

修改文件编码

  1. vi spoon.sh
  2. # add -Dfile.encoding=UTF-8
  3. if "%PENTAHO_DI_JAVA_OPTIONS%"=="" set PENTAHO_DI_JAVA_OPTIONS="-Xms1024m" "-Xmx2048m" "-XX:MaxPermSize=256m" "-Dfile.encoding=UTF-8"
2019-05-06 06:51:53    29    0    0

pgAgent is a job scheduling agent for PostgreSQL, capable of running multi-step batch/shell and SQL tasks on complex schedules.

2019-05-06 06:51:53    1083    0    0

Install PostgreSQL

Install from repository

Install the repository RPM

  1. yum install https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/pgdg-centos10-10-1.noarch.rpm

Install the client packages:

  1. yum install postgresql10

Optionally install the server packages:

  1. yum install postgresql10-server

Optionally initialize the database and enable automatic start:

  1. /usr/pgsql-10/bin/postgresql-10-setup initdb
  2. systemctl enable postgresql-10
  3. systemctl start postgresql-10
  4. su - postgres
  5. psql
  6. \password postgres
  7. xxxpgxxx

Install from source

  1. wget https://ftp.postgresql.org/pub/source/v10.0/postgresql-10.0.tar.gz
  2. tar zxvf postgresql-10.0.tar.gz
  3. cd postgresql-10.0
  4. export PYTHON=/usr/bin/python3
  5. ./configure --prefix=/usr/local/postgres10 --with-python --with-openssl --with-libxml --with-ldap --with-libxslt --enable-thread-safety
  6. make
  7. make install
  8. mkdir /home/pgdata/pg10/pgdata
  9. ./initdb -D /home/pgdata/pg10/pgdata
  10. psql
  11. \pass
2/7