安装系统

停掉服务全新安装UBUNTU 18.04
改密,更新,安BBR

sudo passwd root
apt-get update
wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh && chmod +x bbr.sh && ./bbr.sh
lsmod | grep bbr

安装PHP7.1

sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt install php7.1-fpm php7.1-mcrypt php7.1-cli php7.1-xml php7.1-mysql php7.1-gd php7.1-imagick php7.1-recode php7.1-tidy php7.1-xmlrpc php7.1-mbstring php7.1-curl
php -v

安装nginx,htop,mysql

sudo apt install nginx
apt-get install htop
sudo apt install mysql-server
sudo mysql_secure_installation

添加数据库

mysql -u root -p
create database yavg;
show databases;
exit

设置nginx和php测试

cp /etc/nginx/sites-available/default /etc/nginx/sites-available/defaultOrg

改default的index.nginx-debian.html为index.php

sudo systemctl restart nginx
mv /var/www/html/index.nginx-debian.html /var/www/html/index.php
apt-get install vim
vim /var/www/html/index.php

打开网址

安装博客

修改博客

标签: none

添加新评论