摘要: vim /usr/local/tomcat/conf/server.xml #编辑配置文件 增加虚拟主机,编辑server.xml,在</Host>下面增加如下内容 <Host name="www.test.com" appBase="" unpackWARs= "true" autoDeploy= 阅读全文
posted @ 2017-12-17 17:22 冉冉冉冉冉。 阅读(161) 评论(0) 推荐(0) 编辑
摘要: vim /usr/local/tomcat/conf/server.xml #编辑TOMCAT的配置文件 搜索8080 如果发现80端口被其他web程序占用了, 关闭它 阅读全文
posted @ 2017-12-17 16:30 冉冉冉冉冉。 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 一、安装JDK 到官网网站下载jdk包 http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html 这里下载一个包 可以从windows 上上传文件到linux中 yum -y install 阅读全文
posted @ 2017-12-17 16:16 冉冉冉冉冉。 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 一、配置test.com.conf配置文件 添加下面代码 location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)${ expires 7d; access_log off; } location ~ .*\.(js|css)${ expires 12h; access_l 阅读全文
posted @ 2017-12-17 13:08 冉冉冉冉冉。 阅读(1410) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-12-17 12:14 冉冉冉冉冉。 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 修改(二)的test.com.conf配置文件 server{ listen 80; server_name test.com test2.com test3.com; #多添加几个域名 index index.html index.htm index.php; root /data/wwwroot 阅读全文
posted @ 2017-12-17 11:55 冉冉冉冉冉。 阅读(477) 评论(0) 推荐(0) 编辑
摘要: vim /usr/local/nginx/conf/vhost/test.com.conf #添加一个虚拟主机配置文件 添加下面内容 server {listen 80;server_name test.com;index index.html index.htm index.php;root /d 阅读全文
posted @ 2017-12-17 11:38 冉冉冉冉冉。 阅读(227) 评论(1) 推荐(0) 编辑
摘要: 一、修改nginx.conf配置文件 mkdir /usr/local/ngxin/conf/vhost #创建vhost 子目录 vim /usr/local/ngxin/conf/vhost/aaa.com.conf #编辑一个文件 添加下面内容 server{ listen 80 defaul 阅读全文
posted @ 2017-12-17 10:32 冉冉冉冉冉。 阅读(286) 评论(0) 推荐(0) 编辑
摘要: 一、安装mysql5.6版本 cd /usr/local/src #进入目录 下载的包好管理 wget http://mirrors.sohu.com/mysql/MySQL-5.6/mysql-5.6.36-linux-glibc2.5-x86_64.tar.gz #下载mysql tar zxv 阅读全文
posted @ 2017-12-16 22:40 冉冉冉冉冉。 阅读(232) 评论(1) 推荐(0) 编辑
摘要: 一、开启163邮箱协议 二、设置邮件告警 参数:{ALERT.SENDTO} ,{ALERT.SUBJECT},{ALERT.MESSAGE} 三、编写脚本 https://coding.net/u/aminglinux/p/aminglinux-book/git/blob/master/D22Z/ 阅读全文
posted @ 2017-12-14 15:01 冉冉冉冉冉。 阅读(145) 评论(0) 推荐(0) 编辑