Press "Enter" to skip to content

Linux上搭建typecho

Typecho是由type和echo两个词合成的,来自于开发团队的头脑风暴.
Type有打字的意思,博客这个东西,正是一个让我们通过打字,在网络上表达自己的平台.Echo意思是回声、反馈、共鸣,也是PHP里最常见、最重要的函数,相信大部分PHP爱好者都是从echo 'Hello,world!';开始自己的PHP编程之路的.
名称就表明Typecho是一款博客程序,它在GPL version 2许可证下发行,基于PHP(需要PHP5以上版本)构建,可以运行在各种平台上,支持多种数据库(Mysql,PostgreSQL,SQLite).

主机环境:
[root@test ~]# lsb_release -a
LSB Version: :core-4.1-amd64:core-4.1-noarch
Distributor ID: CentOS
Description: CentOS Linux release 7.4.1708 (Core)
Release: 7.4.1708
Codename: Core
[root@test ~]# uname -a
Linux test 3.10.0-693.2.2.el7.x86_64 #1 SMP Tue Sep 12 22:26:13 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

具体步骤如下:
1.LAMP环境搭建:
参考:https://www.tracymc.cn/archives/649

2.安装typecho
[root@test home]# wget http://typecho.org/downloads/1.1-17.10.30-release.tar.gz
[root@test home]# tar -zxvf 1.1-17.10.30-release.tar.gz
[root@test home]# cd build/
[root@test build]# ll
total 84
drwxr-xr-x 5 501 games 4096 May 26 22:56 admin
-rw-r--r-- 1 501 games 721 Oct 30 2017 index.php
drwxr-xr-x 2 501 games 4096 May 26 22:56 install
-rw-r--r-- 1 501 games 48403 Oct 30 2017 install.php
-rw-r--r-- 1 501 games 14974 Oct 30 2017 LICENSE.txt
drwxr-xr-x 5 501 games 4096 May 26 22:56 usr
drwxr-xr-x 5 501 games 4096 Oct 30 2017 var
[root@test build]# mv * /var/www/html/
[root@test build]# systemctl start mariadb
[root@cdh5 ~]# mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 7
Server version: 5.5.56-MariaDB MariaDB Server

Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> CREATE DATABASE typecho DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
Query OK, 1 row affected (0.00 sec)
[root@test html]# systemctl start httpd
浏览器输入http://1.2.3.4/install.php开始安装:



安装后部分截图如下:


Be First to Comment

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注