条件: 系统:CentOS 7 网卡: eth0 内网 网关:192.168.1.1 eth1 外网 网关:10.0.0.1 配置: 先安装net-tools:yum -y install net-tools route del default #删除默认路由 route add -net 192. ...
分类:
其他好文 时间:
2020-07-17 11:31:43
阅读次数:
74
源码编译安装 http://nginx.org/en/download.html 到官网下载,然后用XFTP上传到root目录 把文件解压出来 tar -zxvf nginx-1.16.0.tar.gz 然后用yum安装依赖项 yum install gcc pcre-devel zlib-deve ...
分类:
其他好文 时间:
2020-07-17 09:27:00
阅读次数:
72
安装Docker 1 2 3 4 5 [root@localhost /]# cat /etc/redhat-release CentOS Linux release 7.5.1804 (Core) [root@localhost /]# yum install docker-ce -y [root ...
分类:
数据库 时间:
2020-07-17 01:22:08
阅读次数:
138
OS:7.2.1511(Core)[root@zabbix-server~]#cat/etc/redhat-releaseCentOSLinuxrelease7.2.1511(Core)[root@zabbix-server~]#cat/etc/redhat-releaseCentOSLinuxrelease7.2.1511(Core)1,下载CentOS7的repo文件wget-O/etc/yu
分类:
其他好文 时间:
2020-07-17 01:18:57
阅读次数:
97
构建基本Web服务 Web服务:提供一个网页内容的服务 Web服务器:提供网页内容的机器 http:超文本传输协议 软件:httpd、Nginx、Tomcat 虚拟机A: 1.安装httpd软件 [root@svr7 ~]# yum -y install httpd [root@svr7 ~]# r ...
分类:
Web程序 时间:
2020-07-16 22:06:45
阅读次数:
110
1. 执行 npm install , C:\Program Files\nodejs\MyBook>npm installnpm notice created a lockfile as package-lock.json. You should commit this file. npm WAR ...
分类:
Web程序 时间:
2020-07-16 12:27:14
阅读次数:
188
pip install django -i https://pypi.tuna.tsinghua.edu.cn/simple 后面的地址可以换成国内的 pip 镜像: 清华 https://pypi.tuna.tsinghua.edu.cn/simple/ 中科大 https://pypi.mirr ...
分类:
编程语言 时间:
2020-07-16 12:06:28
阅读次数:
134
默认安装的php不存在pdo扩展,因此在使用到的时候会报错,直接使用这个命令 apt-get install php-mysql 就可以成功安装pdo扩展 安装完数据库后需要导入sql语句,先进入数据库中提前创建数据库名,比如laykefu的数据库,-u -p 数据库名 ,后面跟上sql文件的地址就 ...
分类:
数据库 时间:
2020-07-16 12:01:11
阅读次数:
72
When working with Web applications, use a context instance per request. Install-Package EntityFramework -Version using System.Data.Entity; public clas ...
分类:
其他好文 时间:
2020-07-16 11:45:43
阅读次数:
67
npm 指令 查看npm安装路径 npm config ls 全局安装包 npm install package -g 查看全局安装的模块 npm list --depth=0 -g Cannot find Module xxx 1.书写错误,往往是写错了模块的名称,而导致无法加载 2.未安装相关模 ...
分类:
其他好文 时间:
2020-07-16 10:13:44
阅读次数:
68