系统环境要求 centos7,yum源正常使用,ip设置为:192.168.8.201; LAMP环境配置 ###软件环境设置systemctl disable firewalld;systemctl stop firewalld;systemctl status firewalldsetenfor ...
分类:
Web程序 时间:
2020-07-12 16:54:30
阅读次数:
66
一、单行 <div class="div">这是一段中文这是一段中文这是一段中文这是一段中文这是一段中文这是一段中文</div> .div { background-color: green; width: 100px; overflow: hidden; text-overflow: ellips ...
分类:
Web程序 时间:
2020-07-10 12:55:11
阅读次数:
83
前提:安装好了docker-ce。systemctlstartdockersystemctlenabledockeriptables-Xiptables-Fserviceiptablessave1、部署nginx:dockerrun-it-d-p80:80-v/usr/share/nginx/html/:/usr/share/nginx/html/-v/etc/nginx/conf.d/:/etc
分类:
其他好文 时间:
2020-07-10 09:36:54
阅读次数:
64
本篇文章主要是描述docker中对Mysql的操作,同时学习容器之间的通信问题,目前架构情况如下: 1、数据库连接使用 在docker中启动Mysql服务后,可以使用两种方法对Mysql进行操作(连接Mysql数据库需要的是IP和端口): ##使用Mysql容器里的ip连接数据库(该方法的前提是连接 ...
分类:
其他好文 时间:
2020-07-09 15:18:53
阅读次数:
58
1、LAMP 环境搭建 1.1 、安装 apache 安装 pcre tar -zxvf pcre-8.41.tar.gz cd pcre-8.41 ./configure --prefix=/home/pcre make make install 安装 apr tar -zxvf apr-1.6. ...
分类:
其他好文 时间:
2020-07-08 21:26:11
阅读次数:
65
1.安装Nginx 1)使用Nginx官方的yum源 [root@localhost ~]# vim /etc/yum.repos.d/nginx.repo [nginx] name=nginx repo baseurl=http://nginx.org/packages/centos/7/$bas ...
分类:
Web程序 时间:
2020-07-06 16:18:11
阅读次数:
81
本次操作在Ubuntu18系统下操作,如在Centos系统下安装,命令可能会有区别,但是原理相同 前置条件:已经安装好docker,配置好yum源并且运行。 1.获取Mysql镜像并启动: root@test:/etc/apt# docker pull mysql:5.7 ## -d,--detac ...
分类:
其他好文 时间:
2020-07-06 15:55:24
阅读次数:
68
https://www.jianshu.com/p/dbc585a35061 系统版本:CentOS7.6; 基于LAMP环境安装 一、环境配置 1、安装环境 [root@jiahao ~]# yum install -y httpd mariadb-server mariadb php php-m ...
分类:
其他好文 时间:
2020-07-04 15:07:12
阅读次数:
75
背景介绍: 用户通过浏览器访问Nginx -> html下的mysql.php文件,去连接Mysql数据库的一个测试 正文: 1.检查确保nginx、php-fpm、mysql的服务都是正常启动的 2.mysql.php测试Mysql的代码 //这里要说明一下,PHP5和PHP7连接Mysql的区别 ...
分类:
数据库 时间:
2020-07-03 01:13:42
阅读次数:
106
正文: php官网:https://www.php.net/ 搜狐镜像源:http://mirrors.sohu.com/ (推荐,国内源下载速度嗖嗖的) 1.php编译安装前解决依赖包 yum -y install epel-release yum -y install gcc gcc-c++ m ...
分类:
Web程序 时间:
2020-06-30 22:37:07
阅读次数:
86