当前位置:网站首页>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;
}边栏推荐
- Hcip --- mGRE comprehensive experiment
- Explain the release of TCP connection in detail
- Learning diary - (routing and switching technology) DHCP (Dynamic Host Configuration Protocol)
- SQL server performance analysis, view slow queries
- 静态路由配置实例学习记录
- Sql Server性能分析,查看慢查询
- PPP 配置实例学习记录
- 查询交叉编译出的可执行文件依赖库
- Do a Cisco experiment!
- Integer times integer overflow
猜你喜欢

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

Unity3d: script execution sequence on scene loading gameobejct

C #: quick sort. If there is the same number, it will be ignored, and then continue the previous search direction to find the next number that meets the requirements for replacement

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

Hcip-hcia knowledge review (II)

jenkins用到的插件

LSM-tree(Log Structured-Merge Tree)的理解

vlan配置实例学习记录

Learning diary - (routing and switching technology) single arm routing

Understanding of LSM tree (log structured merge tree)
随机推荐
nfs服务部署笔记
Understand the article frankly and get the HTTP protocol cache
Pod 拓扑约束
MySQL performance optimization, index optimization
Take go language as an example to explain [performance analysis] by analogizing detective reasoning
为什么要搭建本地yum仓库?
@Requiredargsconstructor annotation use
Super easy to use packet capturing tool tcpdump
围棋能力概念与软件开发能力概念的对应
STP 配置实例学习记录
DNS domain name resolution service
C # custom stack
Unity3d:ugui, UI and special effect particle level, bakemesh above 2018.2, particles between two images and in Scrollview
学习日记——(路由与交换技术)动态路由(rip协议)和静态路由
0 dynamic planning leetcode1024. Video splicing
Hcip-hcia knowledge review (II)
Do a Cisco experiment!
yum安装LNMP服务部署
0 dynamic programming leetcode918. Maximum sum of circular subarrays
2020-09-20