Chinaunix首页 | 论坛 | 博客
  • 博客访问: 463161
  • 博文数量: 279
  • 博客积分: 4467
  • 博客等级: 上校
  • 技术积分: 2830
  • 用 户 组: 普通用户
  • 注册时间: 2007-04-03 14:43
文章分类

全部博文(279)

文章存档

2013年(1)

2012年(39)

2011年(35)

2009年(29)

2008年(131)

2007年(44)

分类:

2009-01-19 13:23:49

iptables -A INPUT -i eth0 -s 192.168.10.31 -d 192.168.10.28  -j DROP
dmidecode #查看硬件信息
显示有几条内存:
dmidecode |grep -A16 "Memory Device$"
显示CPU的详细信息: dmidecode |grep -A42 "Processor"|more
查看,主板的序列号
dmidecode |grep 'Serial Number'
dmidecode | grep 'Serial Number' | awk '{print $3}' | tail -1

mii-tool  #更改网卡的工作模式(自动协商/1000Mb/s全双工的模式)
mii-tool -v 显示网卡的工作模式
mii-tool -F 10baseT-HD eth0 更改eth0的工作模式为10baseT-半双工
mii-tool -F 10baseT-FD eth0
mii-tool -r etho 恢复自适应模式
mlcat.py --from='Sat 29 Nov 2008 00:00:00'  --to='Sat 29 Nov 2008 23:59:59' > log.1129
addQuest( self, questId, questTime, questArg,step )  #添加任务
xd.BornPosFlag[0] = 0xffffffff xd.BornPosFlag[1] = 0xffffffff xd.BornPosFlag[2] = 0xffffffff #开启所有复活点
./message_logger --text & #放在后台运行
jobs #查看所有被挂起的命令
fg ./message_logger --text 把程序放到前台来执行
bg ./message_logger --text 把程序放到后台执行
#/home/test/1.8.4/bigworld/tools/server/message_logger/message_logger
mltar.py -zcf messag.log.tar.gz  #/home/test/1.8.4/bigworld/tools/server/message_logger/message_logger
mltar.py -xf a.tar.gz logdir
speedScale 速度
e.telbornTime=0  清除传送时间控制
select sm_isOnline,sm_playerName from tbl_Player where sm_isOnline!=0;
#查询所有在线角色的在线状态,和角色名称。
cat /proc/cpuinfo
BigWorld.baseAppData["CUR_ONLINE_NUM"]
从baseapp中,显示当前在线人数

直接在my.ini的[mysqld]區段加上log-bin-trust-function-creators=1
 set global log_bin_trust_function_creators=TRUE;
 

Welcome to Base App 1 - Built: 11:54:59 Jun 4 2008
Welcome to Base App 1 - Built: 12:33:47 Dec 11 2008
>>> BigWorld.baseAppData["CUR_ONLINE_NUM"]
1701
>>> BigWorld.baseAppData.keys()
File "", line 1
BigWorld.baseAppData.keys()
^
IndentationError: unexpected indent
>>> BigWorld.baseAppData.keys()
['TradeManager', 'FeatManager', 'MAX_ONLINE_NUM', 'spaceID', 'warehouseManager', 'CUR_ONLINE_NUM', 'factionManager']

>>> e=BigWorld.entities[7083]
>>> e.packageItems
[]
>>> e.packageItems[0].attributes
[]
>>> e.packageItems[0].attributes=[(5,500)]
>>> e.packageItems[0].attributes=[(5,500),(6,200)]
Welcome to Cell App 1 - Build: 11:56:19 Jun 4 2008
>>> e=BigWorld.entities[7092]
>>> e.level=12
>>> e=BigWorld.entities[7083]
>>> e.fcmRate
0.5
>>> e.fcmRate=1.0
阅读(403) | 评论(0) | 转发(0) |
0

上一篇:SHELL编程基础

下一篇:ssh免输密码

给主人留下些什么吧!~~