Ubuntu系统下个人博客的搭建

Ubuntu系统下个人博客的搭建

1. 首先在自己的电脑上安装ubuntu系统,安装过程中记得选择英式键盘,不对自己的主机加密。

2. 了解LAMP工作原理,也就是博客搭建模型。

中间件:apache

数据库:msyql

脚本语言:php5

3. 为了更方便的使用ubuntu系统,我们先安装并启用SSH服务。

(1)安装sshsudo apt-get install ssh

(2)启动ssh服务:sudo service ssh start

(3)查看服务进程:ps -e | grep ssh

 

然后等待安装完成。

 

 

后面看到sshd字样,d表示服务已启动。

然后使用Xshell工具连接ubuntu

 

4. 先将ubuntu的源进行备份。

使用命令sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak

 

配置源文件:sudo vim /etc/apt/sources.list

 

 

 

5. 升级源:sudo apt-get update

            sudo apt-get upgrade

6.安装apache2和脚本语言php5,还有数据库mysql

 

猜你喜欢

转载自blog.csdn.net/sdb5858874/article/details/80716653