Total Pageviews

Friday 20 June 2014

在linux vps上搭建基于php的静态网站程序:singularity-cms(没特色)

cd /var/www
git clone https://github.com/christophersu/singularity-cms/
cd singularity-cms

root@as3:/var/www/singularity-cms# ls
content  index.php  license.txt  README.md
访问http://as3.brite.biz/singularity-cms/

发贴方法:
root@as3:/var/www/singularity-cms# cd content
root@as3:/var/www/singularity-cms/content# ls
404.txt  example.txt  index.txt 
root@as3:/var/www/singularity-cms/content# nano test1.txt
按example.txt的格式,新建帖子test1.txt,格式为:
## 测试1

这是测试1.
root@as3:/var/www/singularity-cms/content# nano index.txt
在# Singularity的上一行加上:
<p><a href=/singularity-cms/test1/>测试1</a></p>
保存文件,网站就更新了。

演示站点:http://as3.brite.biz/singularity-cms/
项目地址:https://github.com/christophersu/singularity-cms/