<Resource name="UserDatabase" auth="Container" type="org.apache.catalina.UserDatabase" description="User database that can be updated and saved" factory="org.apache.catalina.users.MemoryUserDatabaseFactory" pathname="conf/tomcat-users.xml" /> </GlobalNamingResources>
cd /usr/local/src/ tar -zxf zookeeper-3.4.7.tar.gz mv zookeeper-3.4.7 /usr/local/ ln -s /usr/loacl/zookeeper-3.4.7 /usr/loca/zookeeper cd /usr/loca/zookeeper cd conf/ cp zoo_sample.cfg zoo.cfg
编辑配置文件
1 2 3 4
vim zoo.cfg tickTime=2000 dataDir=/data/zk clientPort=2181
启动zookeeper服务
1
/usr/loca/zookeeper/bin/zkServer.sh start
检查服务是否正常启动
1
bin/zkCli.sh -server 127.0.0.1:2181
伪集群配置
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
cd /usr/local/src wget http://mirrors.cnnic.cn/apache/zookeeper/stable/zookeeper-3.4.6.tar.gz tar zxf zookeeper-3.4.6.tar.gz mv zookeeper-3.4.6 /usr/local/ ln -s /usr/local/zookeeper-3.4.6/ /usr/local/zookeeper cd /usr/local/zookeeper/conf/ mv zoo_sample.cfg zoo.cfg vim zoo.cfg tickTime=2000 initLimit=10 syncLimit=5 dataDir=/data/zk1 clientPort=2181 server.1=192.168.56.11:3181:4181 server.2=192.168.56.11:3182:4182 server.3=192.168.56.11:3183:4183
logrotate --help Usage: logrotate [OPTION...] <configfile> -d, --debug Don't do anything, just test (implies -v) -f, --force Force file rotation -m, --mail=command Command to send mail (instead of `/bin/mail') -s, --state=statefile Path of state file -v, --verbose Display messages during rotation --version Display version information
Help options: -?, --help Show this help message --usage Display brief usage message
rotating pattern: /data/logs/logstash/*.log /data/logs/logstash/*.err /data/logs/logstash/*.stdout after 1 days (7 rotations) empty log files are not rotated, old logs are removed considering log /data/logs/logstash/logstash.log log does not need rotating considering log /data/logs/logstash/*.err log /data/logs/logstash/*.err does not exist -- skipping considering log /data/logs/logstash/*.stdout log /data/logs/logstash/*.stdout does not exist -- skipping [root@10.10.235.228 logrotate.d]#
docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 5cc8d207d2b2 nginx "nginx -g 'daemon off" About a minute ago Up About a minute 443/tcp, 0.0.0.0:31610->80/tcp mesos-b5254dbf-0b69-4c0e-b9b6-cd271f73265c-S0.2d202e6a-fb23-41b9-93b6-2b3b1cbfcf30
[root@centos6 ~]# salt '*' grains.item os minion.saltstack.com: ---------- os: CentOS [root@centos6 ~]# salt '*' grains.get os minion.saltstack.com: CentOS
# Load config files from the /etc/nginx/conf.d directory # The default server is in conf.d/default.conf #include /etc/nginx/conf.d/*.conf; server { listen 80 default_server; server_name _;