国产精品天干天干,亚洲毛片在线,日韩gay小鲜肉啪啪18禁,女同Gay自慰喷水

歡迎光臨散文網(wǎng) 會(huì)員登陸 & 注冊(cè)

wordpress部署教程

2023-02-15 10:48 作者:學(xué)酥兩支筆  | 我要投稿

1 更新yum

yum update -y


2 新建用戶

useradd -d /home/huchangyi -m huchangyi


修改用戶密碼

passwd huchangyi


3 安裝ftp

yum install vsftpd

systemctl enable vsftpd

systemctl restart vsftpd


4 安裝php

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

yum -y install php72w

yum -y install php72w-common php72w-fpm php72w-opcache php72w-gd php72w-mysqlnd php72w-mbstring php72w-pecl-redis php72w-pecl-memcached php72w-devel php72w-embedded php72w-cli php72w-pdo php72w-xml

systemctl enable php-fpm

systemctl restart php-fpm


5 安裝nginx

yum list |grep nginx

yum install nginx

systemctl enable nginx

systemctl restart nginx


6 安裝mysql

查看最新的源

https://dev.mysql.com/downloads/repo/yum/


下載mysql的repo源

wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm

wget http://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm


安裝mysql-community-release-el7-5.noarch.rpm包

rpm -ivh mysql-community-release-el7-5.noarch.rpm

yum -y install mysql57-community-release-el7-11.noarch.rpm


安裝這個(gè)包后,會(huì)獲得兩個(gè)mysql的yum repo源

/etc/yum.repos.d/mysql-community.repo

/etc/yum.repos.d/mysql-community-source.repo


安裝

yum -y install mysql-server


重置mysql密碼

mysql -u root

use mysql;

delete from user where user=”;

update user set password=password(‘huchangyi′) where user=’root’;

GRANT ALL ON . TO root@’%’;

FLUSH PRIVILEGES;

select user,host,password from user;

exit;


重啟

systemctl restart mysqld

systemctl enable mysqld


7 下載wordpress

cd /home/huchangyi

wget https://cn.wordpress.org/latest-zh_CN.zip

解壓

unzip huchangyi.zip


8 配置nginx

vim /etc/nginx/conf.d/huchangyi.conf

內(nèi)容如下:

server {

? ? listen 80;

? ? #listen 443 ssl;

? ? server_name? huchangyi.com wp.huchangyi.com;

? ? #ssl_certificate? ?/etc/nginx/conf.d/214616336130727.pem;

? ? #ssl_certificate_key? /etc/nginx/conf.d/214616336130727.key;

? ? #ssl_session_timeout 5m;

? ? #ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;

? ? #ssl_protocols TLSv1 TLSv1.1 TLSv1.2;

? ? #ssl_prefer_server_ciphers on;

? ? #charset koi8-r;

? ? #access_log? /var/log/nginx/host.access.log? main;


? ? location / {

root? ?/home/huchangyi/wordpress;

index? index.html index.htm index.php;

if (!-d $request_filename){

set $rule_0 1$rule_0;

}

if ($rule_0 = "1"){

rewrite ^/(.*)/$ /$1 permanent;

}

if (!-d $request_filename){

set $rule_1 1$rule_1;

}

if (!-f $request_filename){

set $rule_1 2$rule_1;

}

if ($rule_1 = "21"){

rewrite ^/ /index.php last;

}

}


? ? #error_page? 404? ? ? ? ? ? ? /404.html;


? ? # redirect server error pages to the static page /50x.html

? ? #

? ? error_page? ?500 502 503 504? /50x.html;

? ? location = /50x.html {

? ? ? ? root? ?/usr/share/nginx/html;

? ? }


? ? # proxy the PHP scripts to Apache listening on 127.0.0.1:80

? ? #

? ? #location ~ \.php$ {

? ? #? ? proxy_pass? ?http://127.0.0.1;

? ? #}


? ? # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000

? ??

? ? location ~ \.php$ {

? ? ? ? root? ? ? ? ? ?/home/huchangyi/wordpress;

? ? ? ? fastcgi_pass? ?127.0.0.1:9000;

? ? ? ? fastcgi_index? index.php;

? ? ? ? fastcgi_param? SCRIPT_FILENAME? $document_root$fastcgi_script_name;

? ? ? ? include? ? ? ? fastcgi_params;

? ? ? ? }


? ? # deny access to .htaccess files, if Apache's document root

? ? # concurs with nginx's one

? ? #

? ? #location ~ /\.ht {

? ? #? ? deny? all;

? ? #}

}


wordpress部署教程的評(píng)論 (共 條)

分享到微博請(qǐng)遵守國(guó)家法律
抚顺市| 图们市| 阿鲁科尔沁旗| 镇原县| 克拉玛依市| 白银市| 澜沧| 江口县| 桃江县| 宁陕县| 临泉县| 溆浦县| 桐乡市| 宝应县| 寻乌县| 泰安市| 平顺县| 六盘水市| 远安县| 长海县| 卢氏县| 衡水市| 文昌市| 望奎县| 乌海市| 九寨沟县| 大方县| 汶上县| 滕州市| 舟山市| 乌拉特中旗| 宜宾市| 瑞金市| 临猗县| 博兴县| 弥渡县| 井陉县| 福建省| 富平县| 石景山区| 顺昌县|