kali rolling 安装typecho

时间:2022-01-06 22:45:23

#1

apt-get install nginx php7.0 php7.0-mysql php7.0-gd php7.0-cgi php7.0-cli php7.0-curl php7.0-fpm php7.0-mcrypt php7.0-xmlrpc mysql-server mysql-client

#2

会发现mysql已经安装,且不知道密码,我们重置一下。

1,关闭服务
#/etc/init.d/mysql stop
service mysql stop

2,开启安全模式
mysqld_safe --skip-grant-tables &

3,重置密码
mysql -uroot

use mysql;

update user set password=PASSWORD("yourpassword") where User='root';

flush privileges;

quit

4,开启服务
#/etc/init.d/mysql start
service mysql start

#3

配置mysql

mysql_secure_installation
输入密码,第一个n,其余y

mysql -u root -p 
输入密码
create database typecho;
exit;

#4

配置nginx,略

#5

安装typecho

wget https://github.com/typecho/typecho/releases/download/v1.1-15.5.12-beta/typecho.tar.gz

tar -zxvf typecho.tar.gz

rsync -avP ~/build/ /var/www/