璁劇疆 path 涓湁 moin.py
#鎴戣繖 鍙傝?br />
path = $PATH:/Python25/moin-1.9.0/MoinMoin/script
# wikiconfig.py 涓嬮潰鎴戠偣涓?鍙傛暟 錛屽ぇ瀹剁湅浠g爜 灝辯煡閬撲簡
vi /Python25/moin-1.9.0/wiki/config/wikiconfig.py
#instance_dir = '/where/ever/your/instance/is'
instance_dir = wikiconfig_dir+'/../'
# Where your own wiki pages are (make regular backups of this directory):
data_dir = os.path.join(instance_dir, 'data-1', '') # path with trailing /
navi_bar = [
# If you want to show your page_front_page here:
#u'%(page_front_page)s',
u'鏍囬',
u'FindPage',
u'HelpContents',
]
language_default = 'zh'
鍦ㄤ慨鏀筶inux 鏃朵笉璧蜂綔鐢?錛?br />
淇敼/root/tools/moin-1.9.0/MoinMoin/script/server/standalone.py 鍏ㄥ眬鍏?br />
榪愯錛?br />
$>moin server standalone --config-dir=/root/wiki/mywiki/config/ --hostname=192.168.102.207 --port=18081
鍛戒護鏄彲璋冨弬鏁幫細
#/root/tools/moin-1.9.0/MoinMoin/script/server/standalone.py
class PluginScript(MoinScript):
def __init__(self, argv, def_values):
MoinScript.__init__(self, argv, def_values)
self.parser.add_option(
"--docs", dest="docs",
help="Set the documents directory. Default: use builtin MoinMoin/web/static/htdocs"
)
self.parser.add_option(
"--user", dest="user",
help="Set the user to change to. UNIX only. Default: Don't change"
)
self.parser.add_option(
"--group", dest="group",
help="Set the group to change to. UNIX only. Default: Don't change"
)
self.parser.add_option(
"--port", dest="port", type="int",
help="Set the port to listen on. Default: 8080"
)
self.parser.add_option(
"--hostname", "--interface", dest="hostname",
help="Set the ip/hostname to listen on. Use \"\" for all interfaces. Default: localhost"
)
self.parser.add_option(
"--start", dest="start", action="store_true",
help="Start server in background."
)
self.parser.add_option(
"--stop", dest="stop", action="store_true",
help="Stop server in background."
)
self.parser.add_option(
"--pidfile", dest="pidfile",
help="Set file to store pid of moin daemon in. Default: moin.pid"
)
self.parser.add_option(
"--debug", dest="debug",
help="Debug mode of server. off: no debugging (default), web: for browser based debugging, external: for using an external debugger."
)
#鎴愬姛榪愯 鍚?br />
2009-12-20 23:31:31,796 WARNING MoinMoin.log:139 using logging configuration read from built-in fallback in MoinMoin.log module!
2009-12-20 23:31:32,515 INFO werkzeug:106 * Running on http://192.168.1.100:8080/
涓浜涚畝鍗曠殑璇硶浠嬬粛銆庡叾涓?HelpOnDrawings 鐨勫姛鑳?鏈?#8220;鎯婅壋”鐨勬晥鏋滐紒錛佸懙鍛碉紝鑷繁鎼緩涓嚜宸辯殑wiki 鍑烘潵 鐪嬪惂銆?br />

]]>