- 浏览: 91359 次
- 性别:
- 来自: 上海
最新评论
文章列表
tomcat服务器乱码问题
- 博客分类:
- tomcat
服务器/conf目录/server.xml文件
将相关语句改为:
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" URIEncoding="UTF-8"/>
centos7 mysql 安装
- 博客分类:
- mysql
yum search libaio # 检索相关信息
yum install libaio # 安装依赖包
wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm
yum localinstall mysql-community-release-el7-5.noarch.rpm
yum install mysql-community-server
启动 MySQL Server
systemctl start mysqld
查看 MySQL Server 状态
systemctl status mysql ...
Download, extract and compile Redis with:
$ wget http://download.redis.io/releases/redis-4.0.6.tar.gz
$ tar xzf redis-4.0.6.tar.gz
$ cd redis-4.0.6
$ make
The binaries that are now compiled are available in the src directory. Run Redis with:
$ src/redis-server
vi redis.conf 设置
bind 0.0.0.0
prot ...
yum install gcc-c++
yum install pcre pcre-devel
yum install zlib zlib-devel
yum install openssl openssl-devel
wget http://tengine.taobao.org/download/tengine-2.2.0.tar.gz
tar -vxf tengine-2.2.0.tar.gz
./configure --prefix=/usr/local/nginx
make & make install
启动/usr/local/nginx/sbin/nginx
======= ...
elasticsearch集群
- 博客分类:
- elasticsearch
创建elsearch用户组及elsearch用户
groupadd elsearch
useradd elsearch -g elsearch -p elasticsearch
更改elasticsearch文件夹及内部文件的所属用户及组为elsearch:elsearch(elasticsearch为你elasticsearch的目录名称)
chown -R elsearch:elsearch elasticsearch
=========================================
vi /etc/security/limits.conf
elsearch soft ...
rabbit mq 安装
- 博客分类:
- rabbitmq
wget https://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm
rpm -Uvh erlang-solutions-1.0-1.noarch.rpm
yum install epel-release
yum install erlang
wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.9/rabbitmq-server-3.6.9-1.el7.noarch.rpm
yum install rabbitmq-server-3.6.9-1.e ...
CentOS7 jdk
- 博客分类:
- linux
yum search java|grep jdk
yum install java-1.8.0-openjdk.x86_64
vi /etc/profile
#set java environment
export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.131-2.b11.el7_3.x86_64
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib:$JRE_HOM ...
CentOS7 防火墙
- 博客分类:
- linux
firewall-cmd --permanent --add-service=http
firewall-cmd --permanent --zone=trusted --add-port=80/tcp
添加8080端口,供外网访问
firewall-cmd --permanent --add-port=8080/tcp
打开对应端口
firewall-cmd --permanent --zone=public --add-port=5672/tcp
firewall-cmd --permanent --zone=public --add-port=15672/tcp
fi ...
rabbit mq&spring
- 博客分类:
- spring
xmlns:rabbit="http://www.springframework.org/schema/rabbit"
http://www.springframework.org/schema/rabbit http://www.springframework.org/schema/rabbit/spring-rabbit.xsd
<rabbit:connection-factory id="rabbitmqConnectFactory" host="192.168.142.128" port="5672&qu ...
springboot docker
- 博客分类:
- spring
修改docker配置文件
vim /usr/lib/systemd/system/docker.service
将ExecStart这一行后面加上 -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock
改完后如下所示
ExecStart=/usr/bin/dockerd -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock
配置pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi=& ...
centos7 docker 安装
- 博客分类:
- docker
yum update
tee /etc/yum.repos.d/docker.repo <<-EOF
[dockerrepo]
name=Docker Repository
baseurl=https://yum.dockerproject.org/repo/main/centos/7
enabled=1
gpgcheck=1
gpgkey=https://yum.dockerproject.org/gpg
EOF
yum -y install docker-engine
service docker start
查看状态
systemctl status docker.ser ...
CentOS7虚拟机连不上网
- 博客分类:
- linux
service NetworkManager stop
service network restart
service NetworkManager start
centos7 docker mysql
- 博客分类:
- docker
docker search mysql
docker pull mysql
docker run --name mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=tiger -d mysql
启动容器 CONTAINER ID
docker start 644057fcf4adf346beed0131978c3565b287c1ceea2ff03f03a941ce3dc85560
停止容器 CONTAINER ID
docker stop 644057fcf4adf346beed0131978c3565b287c1ceea2ff03f03a941ce3dc85 ...