如何用linux搭建一个typecho博客

in 默认分类 with 4 comments

一.准备

1.一个服务器

宝塔官方推荐

内存:512M以上,推荐768M以上(纯面板约占系统60M内存)
硬盘:100M以上可用硬盘空间(纯面板约占20M磁盘空间)
系统:CentOS 7.1+ (Ubuntu16.04+.、Debian9.0+),确保是干净的操作系统,没有安装过其它环境带的Apache/Nginx/php/MySQL(已有环境不可安装)

系统推荐centos7.x或者Ubuntu16.04+

2.一个域名(最好备案)

3.良好的耐心

二.登录ssh并安装宝塔

**软件
手机端:juicessh
电脑端:xshell putty**

以juicessh为例
点右下角+新建
然后如图
Screenshot_2019-11-11-19-49-23-986_com.sonelli.juicessh.jpg
昵称随便填,如腾讯云 阿里云

地址填 IP地址

认证 点新建并填上帐号密码(第一个框是认证的名称)

端口没修改的话就是默认的22
保存
然后点击登录ssh

如图(登录失败检查配置)
IMG_20191111_194623.jpg

然后看宝塔官方的教程,切记一定要开服务器端口,不然不能用
教程地址IMG_20191111_200044.jpg

对应服务器系统,用对应脚本指令

注意:中间不要断开ssh连接

Screenshot_2019-11-11-20-17-31-225_com.sonelli.juicessh.jpg

如图输入y回车
IMG_20191111_202157.jpg

用浏览器进入面板地址并输入帐号密码登录
Screenshot_2019-11-11-20-23-38-015_com.android.browser.jpg

第一次登录同意宝塔的协议
然后问你选择lnmp还是lamp
其实就是选择Nginx还是Apache

把默认的php7.3改为php7.2(宝塔一键部署源码typecho的需要)
推荐选择lnmp一键安装,并且选择极速安装 大幅节省时间
可以点左上角查看安装进度
IMG_20191111_202937.jpg
这个时间可以改一下小问题

IMG_20191111_203433.jpg

注意一下端口范围

也可以修改面板入口 面板帐号密码

可以简单设置一下

安装完点击左边软件商店

安装“宝塔一键部署源码”
到博客选择typecho一键部署
示例
Screenshot_2019-11-11-21-06-49-614_com.android.browser.jpg
域名选择你的域名或者二级域名

数据库名称和密码都可以自己修改

用你的域名A解析到你的服务器ip

直接访问域名

然后如图Screenshot_2019-11-11-21-14-51-063_com.android.browser.jpg

点击下一步
数据库适配器选择mysql

IMG_20191111_212806.jpg

框中是必须填的
其他可以按需修改

然后点击下一步

IMG_20191111_212704.jpg

可以配置其他东西啦

Screenshot_2019-11-11-21-28-21-216_com.android.browser.jpg

有空来一篇开启ssl实现全局https的教程
和使用cdn的教程

Responses
  1. Thanks for your whole effort on this site. My daughter loves making time for investigation and it's really obvious why. Almost all hear all relating to the compelling means you render insightful tactics by means of this website and attract response from other individuals on this article then my child is certainly starting to learn a lot of things. Take advantage of the remaining portion of the year. You're carrying out a tremendous job. blog
    I always use url shortener
    It is very helpful.

    Reply
  2. @

    I enjoy you because of each of your efforts on this web site. My mom really likes working on internet research and it's easy to understand why. I notice all regarding the compelling form you deliver great suggestions via your website and even attract contribution from some others about this area of interest plus our own princess is actually becoming educated a lot. Enjoy the remaining portion of the year. You're carrying out a wonderful job. blog
    I always use url shortener
    It is very helpful.

    Reply
  3. 一朝耍流氓,十年挂南墙;不乖的孩子统统都要打屁股;越狱是不可能越狱的,这辈子是不可能越狱的。

    Reply
  4. It's very simple to find out any topic on net as compared to books, as I found this piece
    of writing at this web site.

    Reply