日期:2011-02-23 18:06:00  来源:本站整理

<b>Ubuntu下一行号令10秒钟架设一个blog站点</b>[服务器安全]

赞助商链接



  本文“<b>Ubuntu下一行号令10秒钟架设一个blog站点</b>[服务器安全]”是由七道奇为您精心收集,来源于网络转载,文章版权归文章作者所有,本站不对其观点以及内容做任何评价,请读者自行判断,以下是其具体内容:

看下在Ubuntu下一行号令10秒钟搞定的blog站点

在Ubuntu Linux下,你在号令终端下输入:nb,回车,系统会提醒你:

The program 'nb' is currently not installed. You can install it by typing:


sudo apt-get install nanoblogger


bash: nb: command not found(意思是nb程序未安装,你可以通过输入号令sudo apt-get install nanoblogger安装它)
那就输入号令:

sudo apt-get install nanoblogger

没过一会,就十几秒的时间(nb程序体积很小,仅80多k),nb程序自动下载并安装了.然后我们再看看利用办法:
nb --help

输出帮忙信息为:

NanoBlogger - Console weblog engine.
Version 3.3, by Kevin Wood <n1xt3r@fastmail.fm>
Usage:
nb [-b blog_dir] [options]
Options:
-a, --add create new entry, category, or weblog
(directory).
-b, --blogdir <directory> specify weblog directory.
-B, --body <text> deprecated, please use '-T' or '--text'
instead.
-c, --category <ID,cat> specify category (for '--add',
'--delete', '--edit', '--list',
'--update', and '--update-cache').
--cfgfile <file> specify an alternate configuration file.
--configure configure weblog (for '--update').
--datadir <directory> specify weblog's data directory.
-d, --delete <ID,cat> delete an entry or category.
-D, --desc <text> set text of description (for '--add',
'--draft', '--makefile' and
'--makepage').
-e, --edit <ID,cat> edit an entry or category.
-E, --draft <file> edit or create metafile.
-f, --file <file> specify metafile to import as entry
(for '--add').
-h, --help show this help message.
-i, --interactive <1=on/0=off> toggle interactive mode (for '--add',
'--delete', '--preview', '--publish',
and '--update').
-l, --list <all,cat,DATE,max> list entries or categories (defaults to
max).
--manual view the manual.
-m, --move <ID> move an entry to a specified
category (for '--category').
-M, --makepage <file1> <file2> create new weblog page (file2) from
metafile (file1).
--makefile <file> create new metafile.
-n, --author <text> set text of author (for '--add',
'--draft', '--makefile' and
'--makepage').
--plugindir <directory> specify weblog's plugin directory.
-p, --preview run command to preview weblog.
-P, --publish run command to publish weblog.
-q, --query <DATE> specify a query to run (for '--edit' and
'--delete').
--template <file> specify file to load as template (for
'--draft', '--makepage' and
'--makefile').
--template-dir <directory> specify weblog's template directory.
-t, --title <text> set text of title (for '--add',
'--category', '--draft',
'--makefile' and '--makepage').
--tag <TAG> specify tag (for '--add', '--draft',
'--edit', '--makefile' and
'--makepage').
--tag-text <text> set text of tag (for '--tag').
-T, --text <text> set text of body (for '--add',
'--draft', '--makefile' and
'--makepage').
-U, --update-cache <all,DATE,max,expired>
force update of weblog's cache removing
specified cached data (defaults to
'expired').
-u, --update <all,DATE,main,max> force update of weblog's files updating
specified weblog data (defaults to
'max').
-v, --verbose <1=on/0=off> toggle level of verbosity.
-V, --version display version information.
-c,-d,-e,-m accepts multiple ID numbers seperated by commas (e.g. 1,2,3).
--list and --update can match entries by date (irrelevant of entry id(s)).
date = YYYY-MM-DD, YYYY-MM, YYYY
Examples:
specify the weblog directory to create or add new entry
nb -b ~/public_html/weblog -a
create new category and title it "News"
nb -b ~/public_html/weblog -t "News" -c new -a
create new entry using nothing but command line options!
nb -b ~/public_html/weblog -n 'myname' -t 'Title' -T 'Text!' -a
More info:
URL: http://nanoblogger.sourceforge.net

哦,提醒不少可用号令操作.先成立一个博客吧,在本地服务器的blog目录下成立一个blog(可以多用户哦),号令是:

nb -b /var/www/blog/ -a

然后便可以通过浏览器拜候咯:

至于怎么写blog,可以通过号令行直接写,也可以用肆意编辑器撰写好再导入,那都不是难题.

这个NanoBlogger对空间需求不高,不需求任何数据库,纯静态HTML空间便可以了.功效还是很全面的,还有插件支持哦.博客进级就更简单了,博客可以直接在系统更新时进级.

目前你知道什么是nb了吧?   以上是“<b>Ubuntu下一行号令10秒钟架设一个blog站点</b>[服务器安全]”的内容,如果你对以上该文章内容感兴趣,你可以看看七道奇为您推荐以下文章:

  • <b>hosts是什么 hosts文件在什么位置 若何改正hosts</b>
  • <b>在 Windows 8 中手动安装语言包</b>
  • <b>五个常见 PHP数据库问题</b>
  • Windows中Alt键的12个高效快速的利用本领介绍
  • <b>MySQL ORDER BY 的实现解析</b>
  • <b>详解MySQL存储历程参数有三种范例(in、out、inout)</b>
  • <b>Win8系统恢复出来经典的开始菜单的办法</b>
  • <b>Win8系统花屏怎么办 Win8系统花屏的办理办法</b>
  • <b>Windows 7系统下无线网卡安装</b>
  • <b>为什么 Linux不需求碎片整理</b>
  • <b>Windows 8中删除账户的几种办法(图)</b>
  • <b>教你如安在win7下配置路由器</b>
  • 本文地址: 与您的QQ/BBS好友分享!
    • 好的评价 如果您觉得此文章好,就请您
        0%(0)
    • 差的评价 如果您觉得此文章差,就请您
        0%(0)

    文章评论评论内容只代表网友观点,与本站立场无关!

       评论摘要(共 0 条,得分 0 分,平均 0 分) 查看完整评论
    Copyright © 2020-2022 www.xiamiku.com. All Rights Reserved .