`
文章列表

Spring XD

wget https://repo.spring.io/libs-release-local/org/springframework/xd/spring-xd/1.3.1.RELEASE/spring-xd-1.3.1.RELEASE-1.noarch.rpm [root@localhost temp2]# rpm -ivh spring-xd-1.3.1.RELEASE-1.noarch.rpm 准备中...                          ################################# [100%] 正在升级/安装...    1:spring ...
/bin/systemctl stop  firewalld.service systemctl disable firewalld.service yum install iptables-services Package iptables-services-1.4.21-17.el7.x86_64 already installed and latest version vi /etc/sysconfig/iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 6070 -j ACCEPT /bin/syste ...

consul

root@ubuntu:/home/nescafe/temp# cp consul /usr/bin root@ubuntu:/home/nescafe/temp# consul -v Consul v0.8.1 Protocol 2 spoken by default, understands 2 to 3 (agent will automatically use protocol >2 when speaking to compatible agents) root@ubuntu:/home/nescafe/temp# consul agent -dev root@ub ...
[root@localhost temp]# rpm -i gitlab-ce-9.0.5-ce.0.el6.x86_64.rpm             *.                  *.       ***                 ***      *****               *****     .******             *******     ********            ********    ,,,,,,,,,***********,,,,,,,,,   ,,,,,,,,,,,*********,,,,,,,,, ...
#卸载mariadb/mysql  [root@localhost mysql-5.7.18-1.el7.x86_64.rpm-bundle]# rpm -qa | grep mariadb mariadb-5.5.52-1.el7.x86_64 mariadb-devel-5.5.52-1.el7.x86_64 mariadb-server-5.5.52-1.el7.x86_64 mariadb-libs-5.5.52-1.el7.x86_64 [root@localhost mysql-5.7.18-1.el7.x86_64.rpm-bundle]# rpm -e akona ...
官方安装方法 https://docs.docker.com/engine/installation/linux/ubuntu/ Ubuntu安装包 https://download.docker.com/linux/ubuntu/dists/xenial/pool/stable/amd64/ CentOS7安装包 https://download.docker.com/linux/centos/7/x86_64/stable/Packages/ 镜像仓库 https://hub.daocloud.io/repos CentOS依赖包 http://mirrors.163.com/c ...

Ubuntu 装JDK

    博客分类:
  • java
sudo gedit /etc/profile   export JAVA_HOME=/home/nescafe/temp/jdk1.8.0_121 export CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib:$CLASSPATH export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH   sudo dpkg-reconfigure dash #no ls -l `which sh` source /etc/profile nescafe@ubuntu:~/temp/apache- ...

Ubuntu安装docker

#更新Ubuntu sudo apt-get update sudo apt-get dist-upgrade #安装curl sudo apt install curl sudo apt-get remove docker docker-engine sudo apt-get -y install \     linux-image-extra-$(uname -r) \     linux-image-extra-virtual     apt-transport-https \     ca-certificates \     software-properties-common cur ...

数据源

package com.demo.dao.utils; import java.beans.PropertyVetoException; import java.sql.SQLException; import javax.sql.DataSource; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation. ...
log4j.rootCategory=INFO,stdout,FILE,DATABASE log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPattern=%d %p [%c] - <%m>%n log4j.appender.FILE=org.apache.log4j.DailyRollingFileAppender #log ...
http://repo1.maven.org/maven2/ http://repo1.maven.org/maven2/archetype-catalog.xml https://www.cse.buffalo.edu/faculty/alphonce/green/
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import org.apache.http.HttpResponse; import org.apache.http.HttpStatus; import org.apache.http.client.ClientProtocolException; import org.apache.http.client.HttpClient; i ...
userdel nescafe adduser nescafe passwd nescafe
自动获取IP地址 虚拟机使用桥接模式,相当于连接到物理机的网络里,物理机网络有DHCP服务器自动分配IP地址。 #dhclient 自动获取ip地址命令 #ifconfig 查询系统里网卡信息,ip地址、MAC地址 分配到ip地址后,用物理机进行ping ip地址,检测是否ping通。

Java反射用法

    博客分类:
  • java
反射,一种计算机处理方式。是程序可以访问、检测和修改它本身状态或行为的一种能力。 package com.demo.reflectTest; import java.lang.reflect.Array; import java.lang.reflect.Constructor; import java.lang.reflect.Field; import java.lang.reflect.Method; import ...
Global site tag (gtag.js) - Google Analytics