Connect to the database:
MySQL -hrm-uf6b23117l3s5t69zjo.mysql.rds.aliyuncs.com -uwswl -pwswl @ 2019
Show users:
Show Databases;
Open the user:
use MySQL;
Set Password:
the ALTER wswl the IDENTIFIED BY the USER '1qaz2wsx';
Original Password: * C251A941C808DD5E507DF2415BAEAC40647FE880
tomcat start and print the log :
./startup.sh; tailf ../logs/catalina.out
Forced to close the port:
netstat-APN | grep 8080
the kill -9 pid
Java Environment SET:
the JAVA_HOME = / usr / local / Java / jdk8
the JRE_HOME = / usr / local / Java / jdk8 / JRE
CLASS_PATH =:. $ the JAVA_HOME / lib / Dt.jar: $ the JAVA_HOME / lib / the tools.jar: $ the JRE_HOME / lib
the PATH = $ the PATH: $ JAVA_HOME / bin: $ JRE_HOME / bin
Export JAVA_HOME JRE_HOME CLASS_PATH the PATH
nginx environment:
online installation: yum install nginx -y
find nginx.conf: whereis nginx.conf
/etc/nginx/nginx.conf in in the following code to http
Server {
the listen the default_server 80;
the listen [::]: 80 the default_server;
server_name 127.0.0.1:8080;
the root / usr / Share / Nginx / HTML;
include /etc/nginx/default.d/*.conf;
location / {
proxy_pass http://127.0.0.1:8080;
}
error_page 404 /404.html;
location = /40x.html {
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
}
Check whether the file error: nginx -t -c /etc/nginx/nginx.conf
path nginx.conf file can be found in the return nginx -t: nginx -c /etc/nginx/nginx.conf
open: nginx -s reload
nginx default upload file size is the section 1M, / etc / nginx / nginx.conf http {} is added client_max_body_size 20m. Set upload file size is 20M
mongodb child thread can not start
rm usr / local / mongo / mongo / data / db / mongod.lock
restart: ./ the mongod -f mongodb.conf
Kafka used to live start:
./bin/zookeeper-server-start.sh config / ZooKeeper. . 1 Properties> / dev / null 2> &. 1 &
./bin/kafka-server-start.sh config / the server.properties. 1> / dev / null 2> &. 1 &
native producers, consumers test:
./kafka- --broker-List localhost console-producer.sh: 9092 --topic the Test
./kafka-console-consumer.sh --bootstrap-Server localhost: 9092 --topic the --from the Test-Beginning
external network access:
open : listeners = PLAINTEXT: //: 9092
Add: host.name = 101.133.164.24
open and add the external network ip: advertised.listeners = PLAINTEXT: //101.133.164.24: 9092