1. 程式人生 > >showdoc安裝與資料庫基本管理

showdoc安裝與資料庫基本管理

安裝showdoc

yum install -y epel-releasee
yum install -y php php-gd php-fpm php-mcrypt php-mbstring php-mysql php-pdo
yum install -y nginx

showdoc原始碼下載:

yum install -y git
git clone https://github.com/star7th/showdoc.git

然後將其中內容放在Nginx能讀取到的路徑下

rm -rf  /usr/share/nginx/html/*
cp -rf showdoc/* /usr/share/nginx/html/
cd /usr/share/nginx/html/

執行命令賦予 showdoc 下部分目錄的寫許可權

chmod a+w showdoc/install
chmod a+w showdoc/Sqlite
chmod a+w showdoc/Sqlite/showdoc.db.php
chmod a+w showdoc/Public/Uploads/
chmod a+w showdoc/Application/Runtime
chmod a+w showdoc/server/Application/Runtime
chmod a+w showdoc/Application/Common/Conf/config.php
chmod a
+w showdoc/Application/Home/Conf/config.php

進入頁面(ip+port)進行操作:

管理sqlite資料庫

cd showdoc/Sqlite
sqlite3 showdoc.db.php
查看錶:
.table
檢視建表語句:
.schema user
檢視:
select * from user;
增刪改查跟mysql區別不大