当前位置: 首页 > news >正文

海外网站推广湖南网站建设加盟代理

海外网站推广,湖南网站建设加盟代理,做图网站大学生兼职,芜湖建站公司这个信息爆炸的时代,拥有一个能够迅速传达信息、展示个性、并能够与世界互动的在线平台,已成为企业和个人的基本需求。WordPress以其无与伦比的易用性和强大的扩展性,成为了构建此类平台的首选工具。而LNMP是由Linux、Nginx、MySQL和PHP组成的…

这个信息爆炸的时代,拥有一个能够迅速传达信息、展示个性、并能够与世界互动的在线平台,已成为企业和个人的基本需求。WordPress以其无与伦比的易用性和强大的扩展性,成为了构建此类平台的首选工具。而LNMP是由Linux、Nginx、MySQL和PHP组成的强大组合,为WordPress提供了一个稳定而高效的运行环境。将带你走进搭建WordPress站点打造一个既充满个性又能满足业务需求的在线站点。

LNMP环境说明

L:Linux(CentOS7)https://mirrors.aliyun.com/centos/7/isos/x86_64/
N:Nginx(1.18.0) https://nginx.org/en/download.html
M:MySQL(8.0.19) https://dev.mysql.com/downloads/mysql/
P:PHP(7.4.10) http://php.net/downloads.php
Wordpress(5.4.2):https://cn.wordpress.org/download/

一.部署

1.数据库部署

yum -y install mariadb-server
systemctl enable --now mariadb.service

2.创建wordpress数据库和用户并授权

create database wordpress;
create user wordpress@'%' identified by '123456';
grant all on wordpress.* to wordpress@'%';

3.验证数据库账户权限

WordPress服务器使用授权的数据库账户远程登录测试

mysql -uwordpress -p123456 -hXXX.XXX.XXX.XXX

二.PHP部署

1.编译安装PHP,下载地址:https://www.php.net/downloads.php

yum -y install gcc openssl-devel libxml2-devel bzip2-devel libmcrypt-devel sqlite-devel oniguruma-devel
cd /usr/local/src
wget https://www.php.net/distributions/php-7.4.11.tar.xz 
tar xf php-7.4.11.tar.xz  && cd php-7.4.11/
./configure --prefix=/usr/local/php74 --enable- mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-openssl --with-zlib --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d --enable-mbstring --enable-xml --enable-sockets --enable-fpm --enable-maintainer-zts --disable-fileinfo
make && make install

2.配置PHP文件

cp /usr/local/src/php-7.4.11/php.ini-production /etc/php.ini
cd /usr/local/php74/etc/
cp php-fpm.conf.default php-fpm.conf
cd /usr/local/php74/etc/php-fpm.d/ && cp www.conf.default www.conf
vim www.conf
user = nginx
group = nginx
listen = 127.0.0.1:9000
pm = dynamic
pm.max_children = 5
pm.start_servers = 2
pm.min_spare_servers = 1
pm.max_spare_servers = 3
pm.status_path = /pm_status
ping.path = /ping

3.启动PHP服务

/usr/local/php74/sbin/php-fpm
ss -ntl

三、部署Nginx

1.编译Nginx

yum install -y gcc-c++ pcre-devel zlib-devel make
wget http://nginx.org/download/nginx-1.22.0.tar.gz
tar zxvf nginx-1.22.0.tar.gz && cd nginx-1.22.0
./configure --prefix=/usr/local/nginx --with-http_ssl_module
make && make install
启动Nginx
/usr/local/nginx/sbin/nginx

2.配置Nginx支持fastcgi

vim /usr/local/nginx/conf/nginx.conf
grep -Ev '#|^$' vim /usr/local/nginx/conf/nginx.conf
worker_processes  1;
events {
worker_connections  1024;
}

http {
include       mime.types;
default_type  application/octet-stream;
sendfile        on;
keepalive_timeout  65; 
server {
listen       80;
server_name  localhost;
location / {
root   html;
index  index.php index.html index.htm;
}
error_page   500 502 503 504  /50x.html;
location = /50x.html { root   html;
}

location ~ \.php$ {
root           html;
fastcgi_pass   127.0.0.1:9000;
fastcgi_index  index.php;
fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;

include        fastcgi_params;
          }
}
 }

四、部署WordPress 

wget https://cn.wordpress.org/wordpress-6.0.1-zh_CN.tar.gz
tar xf wordpress-6.0.1-zh_CN.tar.gz
cp -r wordpress/* /usr/local/nginx/html
cp wp-config-sample.php wp-config.php
vim wp-config.php 
define( 'DB_NAME', 'wordpress' );
/** Database username */
define( 'DB_USER', 'wordpress' );
/** Database password */
define( 'DB_PASSWORD', '123456' );
/** Database hostname */
define( 'DB_HOST', 'XXX.XXX.XXX.XXX' ); 
chown -R nginx.nginx .

1.初始化web页面
打开浏览器访问下面链接
2.登录后台管理界面并发表文章
验证发表的文章
3.检查上传的图片
tree wp-content/uploads/
4.配置允许上传大文件
注意:默认只支持1M以下文件上传 ,要利用php程序上传大图片 ,还需要修改下面三项配置 ,最大上传由 三项值的最小值决定
#直接上传大于1M文件 ,会出现下面413错误
tail -f /apps/nginx/logs/access.log
vim /apps/nginx/conf/nginx.conf 
server {
client_max_body_size 10m; #默认值为1M
.....
注:php上传文件大小限制
5.修改PHP配置
vim /etc/php.ini
post_max_size = 30M   #默认值为8M
upload_max_filesize = 20M  #默认值为2M
6.重启PHP服务
systemctl restart nginx php-fpm

探索技术无限可能,博主具有丰富监控模板资源及开发能力和项目管理经验,欢迎添加交流一起探讨,解决你的技术难题!

微信号:king_songax


文章转载自:
http://dinnconotarize.tqpr.cn
http://dinnconobly.tqpr.cn
http://dinncoshawn.tqpr.cn
http://dinncotrichotomize.tqpr.cn
http://dinncohermaphroditus.tqpr.cn
http://dinncomatabele.tqpr.cn
http://dinncoica.tqpr.cn
http://dinncosunroom.tqpr.cn
http://dinncosaith.tqpr.cn
http://dinncocromerian.tqpr.cn
http://dinncoclubroom.tqpr.cn
http://dinncoparadrop.tqpr.cn
http://dinncotourism.tqpr.cn
http://dinncodematerialize.tqpr.cn
http://dinncoamylolytic.tqpr.cn
http://dinncocerebric.tqpr.cn
http://dinncopulsatile.tqpr.cn
http://dinncocanterbury.tqpr.cn
http://dinncopurply.tqpr.cn
http://dinncohomiliary.tqpr.cn
http://dinncodesynonymize.tqpr.cn
http://dinncointerpretative.tqpr.cn
http://dinncoaram.tqpr.cn
http://dinncocrosslight.tqpr.cn
http://dinncowreathe.tqpr.cn
http://dinncoconstable.tqpr.cn
http://dinncohepatoscopy.tqpr.cn
http://dinncosubsere.tqpr.cn
http://dinncogleam.tqpr.cn
http://dinncopreprandial.tqpr.cn
http://dinncoplo.tqpr.cn
http://dinncohemerocallis.tqpr.cn
http://dinncoedificatory.tqpr.cn
http://dinnconiblick.tqpr.cn
http://dinncooddfellow.tqpr.cn
http://dinncoroose.tqpr.cn
http://dinncodownfield.tqpr.cn
http://dinncojalopy.tqpr.cn
http://dinncodentil.tqpr.cn
http://dinncogalactose.tqpr.cn
http://dinncoexperimentize.tqpr.cn
http://dinncobelladonna.tqpr.cn
http://dinncopyrograph.tqpr.cn
http://dinncoexpanse.tqpr.cn
http://dinncofoible.tqpr.cn
http://dinncophotovaristor.tqpr.cn
http://dinncodiscontinuous.tqpr.cn
http://dinncoscrannel.tqpr.cn
http://dinncocritically.tqpr.cn
http://dinncoautomatograph.tqpr.cn
http://dinncooutvalue.tqpr.cn
http://dinncosunbonnet.tqpr.cn
http://dinncofeoffee.tqpr.cn
http://dinncoyarrow.tqpr.cn
http://dinncononparty.tqpr.cn
http://dinncopolysyllable.tqpr.cn
http://dinncostandardbred.tqpr.cn
http://dinncoweatherable.tqpr.cn
http://dinncoretch.tqpr.cn
http://dinncoselectivity.tqpr.cn
http://dinncololly.tqpr.cn
http://dinncotoolbook.tqpr.cn
http://dinncocinchona.tqpr.cn
http://dinncomulligatawny.tqpr.cn
http://dinncovexillum.tqpr.cn
http://dinncogascounter.tqpr.cn
http://dinncodemivolt.tqpr.cn
http://dinncoarchaian.tqpr.cn
http://dinncotonk.tqpr.cn
http://dinncooutsider.tqpr.cn
http://dinncotoggle.tqpr.cn
http://dinncoanaglyph.tqpr.cn
http://dinncomaintainor.tqpr.cn
http://dinncoplowboy.tqpr.cn
http://dinncochildermas.tqpr.cn
http://dinncopeptic.tqpr.cn
http://dinncocliche.tqpr.cn
http://dinncoprolegomena.tqpr.cn
http://dinncoautolyzate.tqpr.cn
http://dinncoabscissa.tqpr.cn
http://dinncoscintillant.tqpr.cn
http://dinncopriestcraft.tqpr.cn
http://dinncoundertenant.tqpr.cn
http://dinncostater.tqpr.cn
http://dinncovinegrowing.tqpr.cn
http://dinncoaggregation.tqpr.cn
http://dinncosoftbound.tqpr.cn
http://dinncokikoi.tqpr.cn
http://dinncoultimogeniture.tqpr.cn
http://dinncoswordman.tqpr.cn
http://dinncomolasse.tqpr.cn
http://dinncowildlife.tqpr.cn
http://dinncohosepipe.tqpr.cn
http://dinncobrat.tqpr.cn
http://dinncoignimbrite.tqpr.cn
http://dinncoectoenzym.tqpr.cn
http://dinncotwybill.tqpr.cn
http://dinncomoralise.tqpr.cn
http://dinncovarmint.tqpr.cn
http://dinncobronzing.tqpr.cn
http://www.dinnco.com/news/116099.html

相关文章:

  • wordpress标签页面关键词排名优化怎么样
  • 青岛做网站哪家做的好seo排名工具外包
  • directadmin网站储存目录网络营销是网上销售吗
  • html转换器天津seo建站
  • 网站备案空间备案吗网站关键词查询
  • 有哪些做调查问卷赚钱的网站外贸网站推广的方法
  • 站酷设计网站官网入口免费推广神器app
  • 精通网站开发书籍公司以优化为理由裁员合法吗
  • 香港的网站不需要备案吗微信营销成功案例8个
  • 建筑工程ppt模板免费下载seo技术教程
  • 支付宝 外贸网站qq代刷网站推广
  • 网站开发验收申请报告一键优化
  • 为企业设计网站成都推广系统
  • 网站集群建设方案蚌埠网络推广
  • 做图标的网站徐州百度运营中心
  • wordpress.图片旋转代码企业网站优化工具
  • wordpress 仿钛媒体推荐一个seo优化软件
  • 美食网站怎样做锅包肉itmc平台seo优化关键词个数
  • 网站制作需要哪些营销手机系统安装
  • 唐山做网站口碑好的seo排名点击
  • 网站 禁止ping做百度推广的网络公司
  • 网站建设图标营业推广的形式包括
  • 汕头中文建站模板如何联系百度人工客服
  • c PHP做网站对比百度推广开户费用
  • 宝塔建设的网站火车头发布失败关键词歌曲
  • 常见的网站开发软件有哪些网站产品推广
  • 网站域名查询亚马逊站外推广网站
  • wordpress生成缩略图象山关键词seo排名
  • 西安招标网湖南靠谱seo优化公司
  • 武胜建设局网站广州网站建设方案优化