当前位置:网站首页>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;
}边栏推荐
猜你喜欢

Learning diary - (routing and switching technology) network address translation NAT Technology

秘钥远程登录服务器实现免密登录实战

C custom queue set

DHCP second experiment

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

[Reading Notes "Phoenix architecture" - a large-scale distributed system with reliable architecture. Zhou Zhiming] (I)

How to write a web page with a common text editor

静态路由原理与配置
![Build FRPC client in NAS [super brainless]](/img/02/bc150ab6cec73b9142d0e3c3532417.png)
Build FRPC client in NAS [super brainless]

Unity3d:assetbundle simulation loading, synchronous loading, asynchronous loading, dependent package loading, automatic labeling, AB browser, incremental packaging
随机推荐
Hcip-hcia knowledge review (II)
SQL server performance analysis, view slow queries
Depth first find all simple paths from vertex u to vertex v in the graph
Explanation of websocket protocol
学习日记——(路由与交换技术)OSPF协议
MySQL性能优化,索引优化
Unity3d+moba+ skill indicator (II)
Analysis of inheritablethreadlocal and Alibaba's transmittablethreadlocal design ideas
Design experience of log file IO system
Homework of the fifth week
0 dynamic programming leetcode918. Maximum sum of circular subarrays
Routing and interface technology -- Summary of direct network
Learning diary (routing and switching technology) -- floating static routing and default routing
C language can also write Plants vs. Zombies
读《凤凰架构》- RPC的历史与知识
学习日记——(路由与交换技术)单臂路由
浅做一下思科实验吧!
2020-10-16
查询交叉编译出的可执行文件依赖库
Hcip --- mGRE comprehensive experiment