五月天青色头像情侣网名,国产亚洲av片在线观看18女人,黑人巨茎大战俄罗斯美女,扒下她的小内裤打屁股

歡迎光臨散文網(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ó)家法律
南汇区| 射洪县| 息烽县| 镇雄县| 墨江| 峨眉山市| 富顺县| 招远市| 江安县| 白银市| 城固县| 叙永县| 咸宁市| 喀什市| 洛扎县| 武汉市| 全南县| 遂平县| 永春县| 桂东县| 南京市| 双柏县| 滨州市| 鞍山市| 保德县| 安龙县| 镇江市| 新沂市| 沂南县| 三都| 连平县| 莱州市| 涟源市| 滦平县| 芦山县| 迁安市| 洪湖市| 阿克苏市| 明溪县| 南皮县| 鹰潭市|