当前位置:网站首页>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');边栏推荐
- MySQL—连表查询
- 201403-1
- 牛客题目——判断是不是完全二叉树、平衡二叉树
- CCF-201312-1
- Life game, universe 25 and striver
- [paper reading] a CNN transformer hybrid approach for coding visual neuralactivity into text
- Script file ‘D:\programs\anaconda3\Scripts\pip-script.py‘ is not present.
- Json数据的格式使用
- 2021-06-02
- 【论文阅读】A CNN-Transformer Hybrid Approach for CropClassification Using MultitemporalMultisensor Images
猜你喜欢

2021 national vocational college skills competition (secondary vocational group) network security competition questions (9) ideas

OpenCV(五)——运动目标识别

字节跳动服务网格基于 Hertz 框架的落地实践

ShardingSphere-proxy-5.0.0分布式雪花ID生成(三)

Gurobi——GRBLinExpr

(二)动态卷积之Dynamic Convolution

The 21st - -- the 30th time

UML图介绍
mvc和mvp和mvvm的区别

Snowflake ID (go Implementation)
随机推荐
Matplotlib drawing error: "! Latex error: file `type1cm.sty 'not found." solution
T5 learning
Implementation of filler creator material editing tool
AS更换背景主题以及背景图片
Product axure9 English version, using repeater repeater to realize drop-down multi selection box
Implementation of ByteDance service grid based on Hertz framework
Apache
MQ Series 2: technology selection of Message Oriented Middleware
File类字节输入、输出流
ROS - error in running.Py file in the project
Bean: Model: Entity的区别
补充—整数规划例题
Layoff quarrel, musk: I'm too hard; Mercilessly open source a public opinion acquisition project; Feature engineering is as simple as parameter adjustment?! Nerf boss shouted that he couldn't move; Cu
Casadi -- detailed explanation of data types and introduction to basic operations
Opencv (I) -- basic knowledge of image
实测:云RDS MySQL性能是自建的1.6倍
密码学系列之:PKI的证书格式表示X.509
牛客题目——链表的奇偶重排、输出二叉树的右视图、括号生成、字符流中第一个不重复的字符
Insert pictures in word to maintain high DPI method
Mazak handwheel maintenance Mazak little giant CNC machine tool handle operator maintenance av-eahs-382-1