`
文章列表
1.安装nginx tar zxvf nginx-1.9.9.tar.gz ./configure --prefix=/usr/local/nginx make make install vim /usr/local/nginx/conf/nginx.conf listen 80 改成8099 服务器上没有冲突的端口 如果报错:   the HTTP gzip module requires the zlib library 则安装:yum install zlib zlib-devel 之后再删掉nginx重新解压 执行 /usr/local/ngin ...
Java <%@page import="java.util.*"%> <% List listt= new ArrayList(); listt.add("a"); listt.add("b"); for(int el=0;el<listt.size();el++ ){ out.println(listt.get(el)); } %> angularJS var numbers = new Array(); numbers.push("tru ...
mysql更改密码 SET PASSWORD FOR 'root'@'localhost' = PASSWORD('zouhuiying'); 创建与删除数据库 create database database1 delete database database1 创建table CREATE TABLE `menus` ( `menuid` varchar(20) NOT NULL PRIMARY KEY, `name` varchar(20) NOT NULL, `url` varchar(20) DEFAULT NULL ) 注:PRIMARY KEY表示创建的该 ...
<%@page import="java.sql.*"%> <% Connection con = null; Statement st = null; ResultSet rs = null; String url = "jdbc:mysql://localhost:3306/"; String db = "permission"; String driver = "com.mysql.jdbc.D ...
java常见异常: java.lang.NullPointerException 空指针错误 java.lang.ArrayIndexOutOfBoundsException: 0 数组索引越界 Java 定义数组与split使用 String[] yids=new String[100]; yids=this.yourid.split("\\."); “.”要转义 java错误信息 java.lang.ClassCastException: org.apache.catalina.core.DefaultInstanceManager cannot be ca ...

git

    博客分类:
  • git
在git网页上建立自己的库例如:angularjs-web1 git clone https://github.com/zouhuiying/angularjs-web1.git cd angularjs-web1 vim .git/config [remote "origin"] url = https://zouhuiying@github.com/zouhuiying/angularjs-web1.git 第一次 的时候 git config --global ...
__builtins__.end = None  加这句话Python可以在if后面使用end>>> aTraceback (most recent call last):  File "<stdin>", line 1, in <module>NameError: name 'a' is not defined>>> d = {'a': 1, 'b':2}>>> # 粗暴的写法>>> for k, v in d ...
hadoop命令 查看namenode所处的状态 hadoop dfsadmin -safemode get nn进入安全模式 hadoop dfsadmin -safemode enter 离开安全模式hadoop dfsadmin -safemode leave 创建一个文件夹 hadoop fs -mkdir /user/hadoop/2015 上传文件夹 hadoop fs -put/copyFromLocal word.txt 删除文件 hadoop fs -rm /usr/hadoop/2015 打开文件 hadoop -ls /usr/hadoop/2015/word.txt ...
安装Apache yum install httpd rpm -qi httpd 查看Apache信息 centos7 安装redis 安装EPEL wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm rpm -ivh epel-release-7-5.noarch.rpm yum install redis systemctl start redis.service systemctl status redis.service systemctl enable redis.servic ...

angularJS

1.$location服务的使用 在angularjs的组件中定义,例如demo.js   module.controller('MainController', function($rootScope, $scope,$location){ $scope.urll=$location.search(); }; 使用 假设URL为http://192.168.139.215:8080/demo/#/drag?mid=null&yid=zouhuiying 在html中可以这样引用mid={{urll.mid}}&yid={{urll.yid}} 注:html中的onc ...
获取url参数 <script type="text/javascript"> function GetRequest() { var url = location.search; //获取url中"?"符后的字串 var theRequest = new Object(); if (url.indexOf("?") != -1) { var str = url.substr(1); strs = str.split(" ...
<form>标签的应用 <form class="a" action="users.jsp" method="post"> <p><input type="text" name="username" value="{{user.name}}"/></p> <input type="submit" value="Submit" onclick=" ...
http://man.lupaworld.com/content/manage/ringkee/awk.htm#id2874788   awk学习 awk 命令 awk '$1 + $2 < 100' test awk '$1 > 5 && $2 < 10' test awk '/^(no|so)/' test -----打印所有以模式no或so开头的行。 awk '/^[ns]/{print $1}' test-----如果记录以n或s开头,就打印这个记录。 awk '$1 ~/[0-9][0-9]$/(print $1}' test-- ...
NAT :这种方法需要在专用网连接到因特网的路由器上安装NAT软件。装有NAT软件的路由器叫做NAT路由器,它至少有一个有效的外部全球IP地址。      这样,所有使用本地地址的主机在和外界通信时,都要在NAT路由器上将其本地地址转换成全球IP地址,才能和因特网连接。 VLAN :根据实际应用需求把同一物理局域网内的不同用户逻辑地划分成不同的广播域 南向接口:管理其他厂家网管或设备的接口,即向下提供的接口。 北向接口:提供给其他厂家或运营商进行接入和管理的接口 ARP:地址解析协议,是根据IP地址获取物理地址的一个TCP/IP协议 GRE隧道仅支持点到点的业务接入 GRE 1 ...
1.用ubantu-14.04.3建一台虚拟机 ssh服务需要自己开启 2.在opt目录下克隆devstack源码git clone https://github.com/openstack-dev/devstack.git 3.创建stack用户    su root cd /opt/devstack/tools ./create-stack-user.sh vim /etc/sudoers 配置文件中加入下面一行stack ALL=(ALL:ALL) ALL mv devstack/ /home/ chown -R stack:stack /ho ...
Global site tag (gtag.js) - Google Analytics