当前位置:网站首页>Install LNMP service deployment using yum
Install LNMP service deployment using yum
2022-07-23 12:57:00 【ELIAUK``】
One install nginx
yum install epel-release -y
yum install nginx -y
[[email protected] ~]# systemctl start nginx.service
[[email protected] ~]# systemctl status nginx.service
[[email protected] ~]# systemctl enable nginx.serviceTwo Install development package
yum -y install ntp make openssl openssl-devel pcre pcre-devel libpng libpng-devel libjpeg-6b libjpeg-devel-6b freetype freetype-devel gd gd-devel zlib zlib-devel gcc gcc-c++ libXpm libXpm-devel ncurses ncurses-devel libmcrypt libmcrypt-devel libxml2 libxml2-devel imake autoconf automake screen sysstat compat-libstdc++-33 curl curl-devel3、 ... and mount this database
wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm
rpm -ivh mysql-community-release-el7-5.noarch.rpm
yum install mysql-community-server
by root Account setting password
[[email protected] ~]#mysql_secure_installation # initialization MySQL Initialize database
Enter current password for root (enter for none): <--- Enter the current root password , Because we haven't set up , Directly enter
Set root password? [Y/n] Y <--- Set or not root password , Of course it is , Input Y enter
New password: <--- Input root password , And return , There will be no display during input
Re-enter new password: <--- Input again root password , And return , There will be no display during input
Remove anonymous users? [Y/n] Y <--- Whether to delete anonymous users , Delete , Input Y enter
Disallow root login remotely? [Y/n] Y <--- Whether to delete or prohibit root User remote login , Of course not , Input Y enter
Remove test database and access to it? [Y/n] <--- Delete test database test, Depending on personal preference
Reload privilege tables now? [Y/n] Y <--- Refresh the permissions , Input Y enter
Last appearance :Thanks for using MySQL!
MySql Password setting complete , Restart MySQL:
Four install php
yum -y install php php-cli php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-mcrypt php-mssql php-snmp php-soapinstall php Extended support mysql
yum install php-tidy php-common php-devel php-fpm php-mysql -y
[[email protected] ~]# systemctl start php-fpm.service
[[email protected] ~]# systemctl status php-fpm.servicelocation / {
root /usr/share/nginx/html;
index index.php index.html index.htm; # increase index.php
}
location ~ \.php$ {
root /usr/share/nginx/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;
}边栏推荐
- Explain the release of TCP connection in detail
- app编译打包部署手册
- 静态路由配置实例学习记录
- 读《凤凰架构》- RPC的历史与知识
- Hcip - HDLC and PPP protocols
- Integer times integer overflow
- Analysis of UDP protocol and TCP protocol
- MySQL performance optimization, index optimization
- Routing extension configuration of OSPF and rip
- Nas里搭建Frpc客户端【超级无脑】
猜你喜欢

@Requiredargsconstructor annotation use

C (CSharp) wechat official account development - basic configuration

OSPF 单区域配置实例学习记录

学习日记——(路由与交换技术)动态路由(rip协议)和静态路由

Instant messaging websocket

Gameframework: package resources, publish packages with the app, package and generate folder instructions, upload resources to the server, download resources, gamefreamworklist DAT and gameframeworkve

浅做一下思科实验吧!

Learning diary - (routing and switching technology) layer 3 switch

Analysis of inheritablethreadlocal and Alibaba's transmittablethreadlocal design ideas

Unity3d+gameframework: resource analysis, resource dependency, circular dependency detection
随机推荐
C # custom bidirectional linked list
Explain various network protocols in detail
Hcip --- mGRE comprehensive experiment
ftp部署
Depth first find all simple paths from vertex u to vertex v in the graph
post表单提交数据限制
RIP 配置实例学习记录
Gameframework: package resources, publish packages with the app, package and generate folder instructions, upload resources to the server, download resources, gamefreamworklist DAT and gameframeworkve
强一致性和弱一致性的分析思路以及分布式场景的并发技巧
Unity3d:assetbundle simulation loading, synchronous loading, asynchronous loading, dependent package loading, automatic labeling, AB browser, incremental packaging
Vmware虚拟机和主机之间复制、粘贴内容、拖拽文件
Pod 拓扑约束
STP 配置实例学习记录
psutil监控的简单使用
C#输出斐波那契数列
Unity3d+moba+ skill indicator (I)
Unity3d HD rendering pipeline cannot play video on the model
Analysis of UDP protocol and TCP protocol
Hcip - first experiment
0 double pointer leetcode844. Compare strings with backspace