当前位置:网站首页>LNMP environment - deploy WordPress
LNMP environment - deploy WordPress
2022-07-27 16:53:00 【Hua Weiyun】
LNMP Environmental Science
There is no installation mariadb, Use RDS Cloud database
[[email protected] ~]# yum install -y nginx php-fpm php-mysql php [[email protected] ~]# vi /etc/nginx/nginx.conf server { location / { root /usr/share/nginx/html; # add to index index.php index.html index.htm; # add to } location ~ \.php$ { # add to root html; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html$fastcgi_script_name; include fastcgi_params; } }[[email protected] ~]# vim /etc/php-fpm.d/www.conf user = nginx; RPM: Keep a group allowed to write in log dir.group = nginx[[email protected] ~]# systemctl restart nginx php-fpmwordpress
Premise above LNMP Environmental Science
[[email protected] ~]# tar -zxf wordpress-5.0.2-zh_CN.tar.gz [[email protected] ~]# rm -rf /usr/share/nginx/html/* [[email protected] ~]# cp -rfv wordpress/* /usr/share/nginx/html/ [[email protected] ~]# chmod 777 /usr/share/nginx/html/* [[email protected] html]# cp wp-config-sample.php wp-config.php [[email protected] ~]# cat /usr/share/nginx/html/wp-config.php /** WordPress Database name */define('DB_NAME', 'wordpress');/** MySQL Database user name */define('DB_USER', 'root');/** MySQL Database password */define('DB_PASSWORD', 'Root123456');/** MySQL host */define('DB_HOST', '192.168.1.60:3306');边栏推荐
- kubesphere多节点安装出错
- Duplicate numbers in array
- JDBC连接数据库
- Bean: the difference between model and entity
- 牛客题目——用两个栈实现队列、包含min函数的栈、有效括号序列
- excel skill
- Start from scratch blazor server (1) -- project construction
- Jerry's in ear detection function [chapter]
- Gurobi——GRBLinExpr
- Handling of multiple parts with duplicate names and missing parts when importing SOLIDWORK assemblies into Adams
猜你喜欢

补充—整数规划例题
Interpretation of C basic syntax: summarize some commonly used but easily confused functions (i++ and ++i) in the program (bit field)

【pytorch】|transforms.FiveCrop

OpenCV(一)——图像基础知识

Matlab legend usage

牛客题目——判断是不是完全二叉树、平衡二叉树

The 31st --- the 52nd

Rotate string left

Replication of complex linked list

Apache
随机推荐
Segment tree beats~
Pdf extract text
Polynomial locus of order 5
低代码是开发的未来吗?浅谈低代码平台
String numeric type converted to thousands
MQ Series 2: technology selection of Message Oriented Middleware
jupyter 创建虚拟环境并安装pytorch(gpu)
Kmeans implementation
training on multiple GPUs pytorch
Snowflake ID (go Implementation)
In addition to "adding machines", in fact, your micro service can be optimized like this
自然排序:comparable接口,定制排序:compartor接口的区别
Array analog linked list
jsp-El表达式,JSTL标签
OpenCV(五)——运动目标识别
D3.js create a cool arc
Configuration and application of gurobi in pycharm
【论文阅读】A CNN-transformer hybrid approach for decoding visual neuralactivity into text
(2) Dynamic convolution of dynamic convolution
【论文阅读】A CNN-Transformer Hybrid Approach for CropClassification Using MultitemporalMultisensor Images