python easy_install moin 或 下載 moin-1.9.0 編譯
設置 path 中有 moin.py
#我這 參考
path = $PATH:/Python25/moin-1.9.0/MoinMoin/script
# wikiconfig.py 下面我點下 參數 ,大家看代碼 就知道了
vi /Python25/moin-1.9.0/wiki/config/wikiconfig.py
在修改linux 時不起作用 :
修改/root/tools/moin-1.9.0/MoinMoin/script/server/standalone.py 全局先
運行:
$>moin server standalone --config-dir=/root/wiki/mywiki/config/ --hostname=192.168.102.207 --port=18081
命令是可調參數:
#成功運行 后
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 的功能 有“驚艷”的效果!!呵呵,自己搭建個自己的wiki 出來 看吧』
整理 www.aygfsteel.com/Good-Game
設置 path 中有 moin.py
#我這 參考
path = $PATH:/Python25/moin-1.9.0/MoinMoin/script
# wikiconfig.py 下面我點下 參數 ,大家看代碼 就知道了
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'
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'
在修改linux 時不起作用 :
修改/root/tools/moin-1.9.0/MoinMoin/script/server/standalone.py 全局先
運行:
$>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."
)
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."
)
#成功運行 后
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 的功能 有“驚艷”的效果!!呵呵,自己搭建個自己的wiki 出來 看吧』
- HelpContents
- HelpForBeginners
- HelpForUsers
- HelpIndex
- HelpOnAccessControlLists
- HelpOnActions
- HelpOnActions/AttachFile
- HelpOnAdministration
- HelpOnAdmonitions
- HelpOnAuthentication
- HelpOnAuthentication/ExternalCookie
- HelpOnAutoAdmin
- HelpOnCategories
- HelpOnComments
- HelpOnConfiguration
- HelpOnConfiguration/EmailSupport
- HelpOnConfiguration/Example/AideDeParamétrage/WikiEnLangueFrançaise
- HelpOnConfiguration/FileAttachments
- HelpOnConfiguration/SecurityPolicy
- HelpOnConfiguration/SupplementationPage
- HelpOnConfiguration/SurgeProtection
- HelpOnConfiguration/UserPreferences
- HelpOnCreoleSyntax
- HelpOnDictionaries
- HelpOnDrawings
- HelpOnEditLocks
- HelpOnEditing
- HelpOnEditing/SubPages
- HelpOnFormatting
- HelpOnGraphicalEditor
- HelpOnGroups
- HelpOnHeadlines
- HelpOnImages
- HelpOnLanguages
- HelpOnLinking
- HelpOnLinking/NotesLinks
- HelpOnLists
- HelpOnLogin
- HelpOnMacros
- HelpOnMacros/EmbedObject
- HelpOnMacros/Include
- HelpOnMacros/MailTo
- HelpOnMacros/MonthCalendar
- HelpOnMoinCommand
- HelpOnMoinCommand/ExportDump
- HelpOnMoinWikiSyntax
- HelpOnNavigation
- HelpOnNotification
- HelpOnOpenIDProvider
- HelpOnPackageInstaller
- HelpOnPageCreation
- HelpOnPageDeletion
- HelpOnParsers
- HelpOnParsers/ReStructuredText
- HelpOnParsers/ReStructuredText/RstPrimer
- HelpOnProcessingInstructions
- HelpOnRules
- HelpOnSearching
- HelpOnSessions
- HelpOnSlideShows
- HelpOnSlideShows/000 Introduction
- HelpOnSlideShows/100 Creating the slides
- HelpOnSlideShows/900 Last but not least: Running your presentation
- HelpOnSmileys
- HelpOnSpam
- HelpOnSpellCheck
- HelpOnSubscribing
- HelpOnSuperUser
- HelpOnSynchronisation
- HelpOnTables
- HelpOnTemplates
- HelpOnThemes
- HelpOnUpdating
- HelpOnUpdatingPython
- HelpOnUserHandling
- HelpOnUserPreferences
- HelpOnVariables
- HelpOnXapian
- HelpOnXmlPages
- HelpTemplate
整理 www.aygfsteel.com/Good-Game