2017年1月1日

nginx

摘要: 下载对应当前系统版本的nginx包(package)# wget http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm建立nginx的yum仓库# rpm -ivh ngi 阅读全文

posted @ 2017-01-01 13:17 adamas 阅读(97) 评论(0) 推荐(0) 编辑

2016年12月31日

防火墙

摘要: 1、在Linux系统里面找到并打开编辑配置防火墙的文件,执行命令:vi /etc/sysconfig/iptables。 2、在上面打开的文件里面加入一下语句:-A INPUT -m state –state NEW -m tcp -p tcp –dport 80 -j ACCEPT(允许80端口通 阅读全文

posted @ 2016-12-31 23:12 adamas 阅读(130) 评论(0) 推荐(0) 编辑

防火墙2

摘要: 一直用CentOS 6 习惯了,一下没适应过来。防火墙配置后执行service iptables save 出现"Failed to restart iptables.service: Unit iptables.service failed to load: No such file or dir 阅读全文

posted @ 2016-12-31 23:12 adamas 阅读(115) 评论(0) 推荐(0) 编辑

2016年12月15日

SVN:多版本库环境的搭建

摘要: 一、 1,启动SVN sudo svnserve -d -r /home/data/svn/ 其中 -d 表示守护进程, -r 表示在后台执行 /home/data/svn/ 为svn的安装目录 2,关闭SVN 这里采取linux杀死进程的方式处理的 ps -ef|grep svnserve roo 阅读全文

posted @ 2016-12-15 10:02 adamas 阅读(1462) 评论(0) 推荐(0) 编辑

2016年12月14日

安装SVN服务端

摘要: 1,安装SVN服务端 直接用apt-get或yum安装subversion即可(当然也可以自己去官方下载安装) sudo apt-get install subversion 2,创建版本库 svnadmin create /home/myrepos //这里的文件目录自己随便设置 3,配置svns 阅读全文

posted @ 2016-12-14 09:01 adamas 阅读(153) 评论(0) 推荐(0) 编辑

2016年8月25日

springContext

摘要: 方法一 package com.hsh.utils; import org.springframework.beans.BeansException;import org.springframework.context.ApplicationContext;import org.springfram 阅读全文

posted @ 2016-08-25 14:51 adamas 阅读(158) 评论(0) 推荐(0) 编辑

2016年7月7日

linux centos7安装 mysql-5.7.11

摘要: 1.下载和解压mysql数据库 wget http://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.11-linux-glibc2.5-x86_64.tar.gzs tar -xvf mysql-5.7.11-linux-glibc2.5-x86_ 阅读全文

posted @ 2016-07-07 01:34 adamas 阅读(454) 评论(0) 推荐(0) 编辑

2016年6月30日

ajax struts2 前后台 交互

摘要: 1. 前台 $.get("/test/all.action",{'name':'name','password':'password'},function(data){ alert(data.name);}); $.post("/test/all.action",{'name':'name','pa 阅读全文

posted @ 2016-06-30 22:19 adamas 阅读(183) 评论(0) 推荐(0) 编辑

ajax上传文件

摘要: 一、 <input value="上传封面" style="width:60;height:20" type="file" id="imgfile" accept="image/*" onchange="imgup(this,\''+md5+'\')" /> '; 二、 function imgup 阅读全文

posted @ 2016-06-30 09:27 adamas 阅读(98) 评论(0) 推荐(0) 编辑

2016年1月23日

Spring的 classpath 通配符加载配置文件

摘要: Spring的 classpath 通配符加载配置文件classpath:app-Beans.xml说明:无通配符,必须完全匹配classpath:App?-Beans.xml说明:匹配一个字符,例如 App1-Beans.xml 、 App2-Beans.xmlclasspath:user/*/B... 阅读全文

posted @ 2016-01-23 15:20 adamas 阅读(451) 评论(0) 推荐(0) 编辑

导航