linux装软件方式:
1.源码安装:下载wget--》解压tar -zxvf --》配置 ./configure ---》编译make
-->安装 make install
2.yum安装 一键安装包 centos 红帽 乌班图
3.rpm

l n m p

linux 版本 39.98.47.141
windows

centos 6.5 6.8 system nekwrok restart
centos 7.0+ systemctl

centos 7.4 7.5

systemctl status firewalld.service 查看防火墙
systemctl stop firewalld.service
systemctl disable firewalld.service 开机 防火墙 不自启

###Nginx#######安装篇############
rpm -ivh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm
yum list nginx ##查询更新列表
yum -y install nginx ##yum安装命令

systemctl start nginx.service ##开启nginx服务软件
systemctl enable nginx.service ##加入开启启动项

###Nginx#######测试篇######################
用windows浏览器 测试
http://39.98.47.141/(阿里云IP)
看到:
Welcome to nginx!
表示:
Nginx安装成功了
问题1: 访问不了
阿里云: 安全组 --》配置 --》 克隆一个 端口 80
###########################################

===========================================接》》着》》安装》》PHP》》=================================================》》》》

###Php56#######安装篇############
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

yum -y install php56w php56w-fpm php56w-opcache php56w-mysql php56w-gd libjpeg* php56w-ldap php56w-odbc php56w-pear php56w-xml php56w-xmlrpc php56w-mbstring php56w-bcmath

systemctl start php-fpm.service ## 启动 php-fpm 软件 用于 运行PHP脚本
systemctl enable php-fpm.service ## 加入 php-fpm 开启自动项

/etc/nginx/conf.d/ 目录下: 虚拟机配置文件

nginx.conf
include

vim /etc/nginx/conf.d/default.conf

:set nu #####开启行数
###将30行-36行 前面 # 去掉
###将 第31行 "html" 改成 /usr/share/nginx/html
###将 第34行 "/scripts" 改成 $document_root

location ~ \.php$ {
root /usr/share/nginx/html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}

:wq! ##退出保存

systemctl restart nginx.service
systemctl restart php-fpm.service

vim /usr/share/nginx/html/index.php
###编辑如下代码 测试环境脚本
<?php
echo phpinfo();
?>

###Nginx关联php脚本#######测试篇######################
用windows浏览器 测试
http://39.107.105.231/index.php (阿里云IP)
看到:
PHP Version 5.6.36
表示:
Nginx关联php成功了,也就是PHP安装成功了!
#####################################################

===========================================接》》着》》安装》》MySQL》》=================================================》》》》

###Mysql#######安装篇############
rpm -qa|grep mariadb #查看阿里云默认安装的mariadb数据库 版本号:如:mariadb-libs-5.5.56-2.el7.x86_64
rpm -e --nodeps mariadb-libs-5.5.56-2.el7.x86_64 ##卸载mariadb-libs-5.5.56-2.el7.x86_64包 (rpm -e --nodeps 后面跟是上个命令查询结果)

rpm -e --nodeps mariadb-libs-5.5.44-2.el7.centos.x86_64

rpm -ivh http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm
yum list mysql-community-server
yum -y install mysql-community-server

systemctl start mysqld.service
systemctl enable mysqld.service

mysql_secure_installation ###初始化 mysql系统数据(安装系统数据库)

##提示: Enter current password for root (enter for none):
空密码,回车

##提示: Set root password? [Y/n]
y,回车

##提示: New password:
输入数据库密码,如:zha123456 (两次重复密码)

##提示: Remove anonymous users? [Y/n]
y,回车

##提示: Disallow root login remotely? [Y/n]
y,回车

##提示: Remove test database and access to it? [Y/n]
y,回车

##提示: Reload privilege tables now? [Y/n]
y,回车

###提示: 看到:
Thanks for using MySQL!

mysql -h localhost -u root -p
Enter password:******** rootroot

mysql>
mysql>GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'song123456' WITH GRANT OPTION; ##开启mysql远程访问权限
mysql>flush privileges; ##刷新权限
mysql>exit;

systemctl stop firewalld.service

###MySQL#######测试篇######################
###提示: 阿里云 安全组 克隆规则
允许 自定义 TCP 3306/3306 地址段访问 0.0.0.0/0 System created rule.
用Navicat for MySQL 新建连接测试
表示:
Navicat for MySQL 连接阿里云Ip数据库,
外网访问正常,ok!!
#####################################################

===========================================接》》着》》安装》》Iwebshop》》=================================================》》》》

上传iwebshop压缩包:
FileZilla:

unzip iwebshop.zip

vim /etc/selinux/config

Aliyun-Centos 7 LNMP安装(最新版LNMP)的更多相关文章

  1. centos下yum安装lamp和lnmp轻松搞定

    centos下yum安装lamp和lnmp轻松搞定.究竟多轻松你看就知道了.妈妈再也不操心不会装lamp了. 非常辛苦整理的安装方法,会持续更新下去.凡无法安装的在评论里贴出问题来,会尽快解决.共同维 ...

  2. CentOS 7 yum安装LAMP,LNMP并搭建WordPress个人博客网站

    本次实验要进行的是在CentOS7.2,内核版本3.10.0-327.el7.x86_64的环境下搭建LAMP和LNMP,并在此之上做一个WordPress博客网站. [root@Shining ~] ...

  3. CentOS Stream 8 安装 Zabbix6.0 -- LNMP环境(nginx-1.20,mariadb-10.6,php-7.4)

    镜像下载.域名解析.时间同步请点击阿里云开源镜像站 zabbix6.0 LTS版本出来了,前段时间刚安装了5.4,今天打算在虚拟机上安装6.0测试,安装6.0的要求php版本不低于7.2,mariad ...

  4. CentOS 6.8 安装最新版 Git

    CentOS 6.8 自带的 Git 版本为 1.7.1,比较旧,yum 安装也停留在 1.7.1,还是源码编译安装吧. 1. 下载源码: wget -c https://github.com/git ...

  5. Centos 6.5安装最新版谷歌浏览器-Chrome

    (1)在root下直接运行:yum install --skip-broken google-chrome-stable(2015/6/25更新) (2)网上很多相关到资料,不过都比较繁琐,下面给出一 ...

  6. CentOS 7 编译安装最新版git

    安装wget yum install wget -y 下载最新版本的git源码,并解压 cd /usr/local/src/ wget https://mirrors.edge.kernel.org/ ...

  7. CentOS使用yum安装最新版nginx步骤

    sudo yum install yum-utilsvi  /etc/yum.repos.d/nginx.repo 输入: [nginx-stable]name=nginx stable repoba ...

  8. centos 7.6 安装最新版docker 19.03

    systemctl stop docker rpm -qa | grep docker 看到那个删除那个yum erase docker \ docker-client \ docker-client ...

  9. lnmp安装mysql

    lnmp安装mysql 下载lnmp wget http://soft.vpser.net/lnmp/lnmp1.6.tar.gz 解压 tar ‐xf lnmp1..tar.gz 安装数据库 ./i ...

  10. centos7 编译安装新版LNMP环境

    centos7 编译安装新版LNMP环境 环境版本如下: 1.系统环境:Centos 7 x86_64 2.NGINX:nginx-1.11.3.tar.gz 3.数据库:mariadb-10.0.2 ...

随机推荐

  1. mvn 本地jar包 加入自己的maven仓库

    -Dfile :你的jar的名称 -DgroupId :在pom中的groupId -DartifactId :在pom中的artifactId -Dversion :在pom中的version 在j ...

  2. Linux基础教程 linux中使用find命令搜索文件常用方法记录

    find是linux非常强大的搜索命令,通过man find查看find手册,可以发现find的说明一屏接一屏,估计要看完也得花不少时间.兄弟连Linux培训 小编总结了下,整理出find常用的使用方 ...

  3. UVa 213 信息解码 (模拟 && 二进制)

    题意 :对于下面这个字符串 0,00,01,10,000,001,010,011……. 首先是长度为1的串,然后是长度为2的串,以此类推.不存在全为1的串. 你的任务是编写一个程序.首先输入一个代码头 ...

  4. luoguP1025+codevs 1039 数的划分 x

    luoguP1025 + codevs1039 数的划分 2001年NOIP全国联赛提高组  时间限制: 1 s  空间限制: 128000 KB  题目等级 : 黄金 Gold   题目描述 Des ...

  5. pd.read_csv参数解析

    对pd.read_csv参数做如下解释: pandas.read_csv(filepath_or_buffer, sep=', ', delimiter=None, header='infer', n ...

  6. Python文件对象方法

    使用open()函数创建一个文件对象,这里是可以在这个对象上调用的函数的列表 - 编号 方法名称 描述 1 file.close() 关闭文件,无法读取或写入关闭的文件. 2 file.flush() ...

  7. c++结构体、共用体和枚举

    结构体类型 c++中的结构体成员既可以是数据,也可以是函数 c语言中定义结构体变量必须加struct(这也是很多时候和typedef),但是在c++里面,可以不加 结构体和类的不同在于,结构体中的变量 ...

  8. SQL server 从创建数据库到查询数据的简单操作

    目录. 创建数据库 创建表 插入数据 查询 1.创建数据库 --创建数据库 create database db_Product go --使用数据库use db_Productgo 2.创建表 -- ...

  9. .net framework4.6项目的dll升级后,未找到方法“System.String.GetPathsOfAllDirectoriesAbove”解决

    https://stackoverflow.com/questions/59276192/getpathsofalldirectoriesabove-cannot-be-evaluated-after ...

  10. spring boot + mybatis + layui + shiro后台权限管理系统

    后台管理系统 版本更新 后续版本更新内容 链接入口: springboot + shiro之登录人数限制.登录判断重定向.session时间设置:https://blog.51cto.com/wyai ...