linux常用命令:
uname -a | cat /proc/version 查看系统版本
vi /etc/systemd/system/crane.service
systemctl daemon-reload
systemctl restart crane.service
Reids:
redis-cli -h 10.10.10.190
info clients
config get maxclients
more 2017-12-12.log | grep ‘12:10‘ > 1210.log
sz 1210.log 下载
rz 上传
mvn package -Dmaven.test.skip=true;
netstat -ano |grep 8080
防火 墙:
firewall-cmd --premanent --add-port=8081/tcp
firewall-cmd --reload
firewall
java -..jar --server.port=8082
adb shell
logcat -v time
settings get global system.other-host
settings put global system.other-host 10.9.8.137
reboot
建立链接
ln -s dbpe.112. current
journalctl -n2000 -f -u dbpe.service
linux
netstat -ano |grep 8080
集群环境:
server A:VM
-Dakka.remote.netty.tcp.hostname=10.9.8.137
-Dakka.cluster.seed-nodes.0=akka.tcp://[email protected]:2552
-Dakka.cluster.seed-nodes.1=akka.tcp://[email protected]:2552
server B:VM
-Dakka.remote.netty.tcp.hostname=10.9.7.117
-Dakka.cluster.seed-nodes.0=akka.tcp://[email protected]:2552
-Dakka.cluster.seed-nodes.1=akka.tcp://[email protected]:2552
备份:pg_dump -h localhost -p 5432 -U tradesns -W -F c -b -v -f "/home/tradeworkwangbin/us2010.backup" us2010
恢复:pg_restore -h 192.168.0.100 -p 5432 -U postgres -W -d us2011 -v "/root/us2010.backup"