sudo apt update 更新
sudo apt upgrade 更新
安装中文语言包
sudo apt-get install language-pack-zh-han*
安装LAMP
sudo apt-get install apache2 php libapache2-mod-php php-curl php-mbstring php-gettext redis-server
sudo apt-get install mysql-client mysql-server mysql-client php7.0-mysql phpmyadmin
=====
dpkg -l | grep php
apt-get remove php
add-apt-repository --remove ppa:webupd8team/php7.0
apt-get autoremove
============================================
用命令开启伪静态sudo a2enmod rewrite
配置apache2.conf(位置:/etc/apache2/)
<Directory /var/www/>
Options Indexes FollowSymLinks Includes
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
#AllowOverride None 改为All
AllowOverride All
Requireall granted
#AllowOverride None
#Require all granted
</Directory>
重启apache,/etc/init.d/apache2 restart
从另一台服务器资料复制这台服务器
======
scp root@120.24.171.224:/var/www/html.zip /home/make/html.zip
sudo apt upgrade 更新
安装中文语言包
sudo apt-get install language-pack-zh-han*
安装LAMP
sudo apt-get install apache2 php libapache2-mod-php php-curl php-mbstring php-gettext redis-server
sudo apt-get install mysql-client mysql-server mysql-client php7.0-mysql phpmyadmin
=====
dpkg -l | grep php
apt-get remove php
add-apt-repository --remove ppa:webupd8team/php7.0
apt-get autoremove
============================================
用命令开启伪静态sudo a2enmod rewrite
配置apache2.conf(位置:/etc/apache2/)
<Directory /var/www/>
Options Indexes FollowSymLinks Includes
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
#AllowOverride None 改为All
AllowOverride All
Requireall granted
#AllowOverride None
#Require all granted
</Directory>
重启apache,/etc/init.d/apache2 restart
从另一台服务器资料复制这台服务器
======
scp root@120.24.171.224:/var/www/html.zip /home/make/html.zip