开启网关,2个网关节点执行
game_gateway_white_list:open_gateway_flag().
开启小游戏节点,在中心服执行
mod_disperse_game:open_all_game_node_on_center().
game_gateway_white_list:add(212967827).
util:date_to_second({{2019,01,11},{0,0,0}}).
util:date_to_second({{2018,12,24},{0,0,0}}).
[rpc:cast(Node, adm, up_all, []) || Node <- erlang:nodes()].
sudo sed -i “s/172.10.10.61/127.0.0.1/g” ls *.config
werl -P 500000 -K true -smp auto -pa …/ebin -name smyx_game@127.0.0.1 -setcookie smyx4399 -boot start_sasl -config server -s main server_start
spawn(fun() -> etop:start([{output, text}, {interval, 5}, {lines, 20}, {sort, memory}]) end).
spawn(fun() -> etop:start([{output, text}, {interval, 5}, {lines, 20}, {sort, runtime}, {tracing, off}]) end).
spawn(fun() -> etop:start([{output, text}, {interval, 5}, {lines, 20}, {sort, reductions}, {tracing, off}]) end).
nc -z -w 1 61.14.255.161 3301
https://blog.csdn.net/ygqygq2/article/details/53264895
ssh-keygen -t rsa -b 8192
cd /mnt/hgfs/code/svn-new/server_online/trunk/sh
cd /mnt/hgfs/code/svn-new/ky-2/trunk/sh
cd /data/Oneforward/k28/game1forward/sh/
简单防范SYN_RECV攻击
https://www.cnblogs.com/suihui/p/3654054.html
TIME_WAIT 3772
CLOSE_WAIT 9702
SYN_SENT 9452
FIN_WAIT1 43395
ESTABLISHED 49
FIN_WAIT2 464
SYN_RECV 276
CLOSING 8495
LAST_ACK 84970
CLOSED 没有使用这个套接字[netstat 无法显示closed状态]
LISTEN 套接字正在监听连接[调用listen后]
SYN_SENT 套接字正在试图主动建立连接[发送SYN后还没有收到ACK]
SYN_RECEIVED 正在处于连接的初始同步状态[收到对方的SYN,但还没收到自己发过去的SYN的ACK]
ESTABLISHED 连接已建立
CLOSE_WAIT 远程套接字已经关闭:正在等待关闭这个套接字[被动关闭的一方收到FIN]
FIN_WAIT_1 套接字已关闭,正在关闭连接[发送FIN,没有收到ACK也没有收到FIN]
CLOSING 套接字已关闭,远程套接字正在关闭,暂时挂起关闭确认[在FIN_WAIT_1状态下收到被动方的FIN]
LAST_ACK 远程套接字已关闭,正在等待本地套接字的关闭确认[被动方在CLOSE_WAIT状态下发送FIN]
FIN_WAIT_2 套接字已关闭,正在等待远程套接字关闭[在FIN_WAIT_1状态下收到发过去FIN对应的ACK]
TIME_WAIT 这个套接字已经关闭,正在等待远程套接字的关闭传送[FIN、ACK、FIN、ACK都完毕,这是主动方的最后一个状态,在过了2MSL时间后变为CLOSED状态]
sudo /opt/erlang/bin/erl -remsh k8_game1_forward@127.0.0.1 -setcookie 22222222fk1fk10903978k73 -name test@127.0.0.1
ssh 172.10.10.57 -p18999
ssh 10.14.255.167
scp -P 18999 h5-server.tar.gz 172.10.10.57:/data/game/
scp -P 18999 ./*.beam 172.10.10.57:/data/game/h5-server/ebin
tar -czvf h5-server.tar.gz ./h5-server
tar -xzvf h5-server.tar.gz
C:\Users\Administrator\AppData\Local\GameRoom
3931819
sed -n ‘3931819,5809376p’ 待截取的文件 >> 保存的新文件
set global interactive_timeout = 28800;
set global wait_timeout = 28800;
erlang:whereis(mod_promo_server_slave) ! {clean_ets_promo_info}.
eprof:start().
eprof:profile([pid(x,x,x)]).
eprof:stop_profiling().
eprof:analyze().
eprof:stop().
eprof:start_profiling([regNames], {gen, call, 4}).
eprof:stop_profiling().
eprof:analyze().
eprof:stop().
E:\code\observer_cli-master\src
db.getCollection(‘shoot_fish_record_20190518’).find({“player_id”:“210259399”,“feidanFlag”:1,“fishId”:0,“createTime”:{$gte:1558165200 , $lte:1558195199}})