-----------------------------------------------REMI repository--------------------------------------------------
yum install wget
wget http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
yum install remi-release-7.rpm
-----------------------------------------------JDK--------------------------------------------------
yum install java-1.8.0-openjdk-devel.x86_64
环境变量(用于tar方式安装时)
export JAVA_HOME=/usr/jdk
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
-----------------------------------------------zookeeper--------------------------------------------------
tar xvf zookeeper-3.4.8.tar.gz
cd zookeeper/conf
cp zoo_sample.cfg zoo.cfg
vi zoo.cfg
cd ../bin/
./zkServer.sh start
-----------------------------------------------redis--------------------------------------------------
tar xzf redis-3.2.1.tar.gz
cd redis
make
make test
make install
redis-server redis.conf
如果 You need tcl 8.5 or newer in order to run the Redis test
- wget http://downloads.sourceforge.net/tcl/tcl8.6.1-src.tar.gz
- sudo tar xzvf tcl8.6.1-src.tar.gz -C /usr/local/
- cd /usr/local/tcl8.6.1/unix/
- sudo ./configure
- sudo make
- sudo make install
-----------------------------------------------nginx--------------------------------------------------
tar zxvf nginx-1.11.1.tar.gz
cd nginx-1.11.1
./configure --prefix=/data/software/nginx --with-http_stub_status_module --with-http_ssl_module --with-file-aio --with-http_realip_module --with-http_gzip_static_module
- yum -y install gcc pcre-devel openssl openssl-devel
make
make install
vi /etc/profile
export NGINX_HOME=/usr/local/nginx
export PATH=$PATH:$NGINX_HOME/sbin
export NGINX_HOME PATH
source /etc/profile
nginx 配置
#user nobody;
worker_processes 2;
error_log logs/error.log;
pid logs/nginx.pid;
events {
worker_connections 4096;
}
http {
log_format main '$remote_addr $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'$http_user_agent $http_x_forwarded_for $request_time $upstre
am_response_time $upstream_addr $upstream_status';
include mime.types;
default_type application/octet-stream;
access_log logs/access.log main;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
gzip on;
server {
listen 80;
server_name localhost;
location / {
root html;
index index.html index.htm;
}
error_page 404 /404.html;
location = /404.html {
root html;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
include /data/software/nginx/conf.d/*.conf;
}
limit_req_zone $binary_remote_addr zone=check:50m rate=30r/s;
upstream check_service{
server 127.0.0.1:8080;
}
server {
listen 80;
server_name check.fapiaoxx.com cloud-check.fapiaoxx.com;
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto https;
proxy_redirect off;
proxy_connect_timeout 240;
proxy_send_timeout 240;
proxy_read_timeout 240;
proxy_pass http://check_service;
}
error_page 404 /404.html;
location = /404.html {
limit_req zone=check burst=10 nodelay;
root html;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
upstream kneebrace_provider{
server 127.0.0.1:8888;
}
server {
listen 80;
server_name kneebrace.noitom.cn;
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto https;
proxy_redirect off;
proxy_connect_timeout 240;
proxy_send_timeout 240;
proxy_read_timeout 240;
proxy_pass http://kneebrace_provider;
}
#error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
------------------------------------------------nginx升级1.13.3--------------------------------------------
ps -ef|grep nginx
wget http://nginx.org/download/nginx-1.13.3.tar.gz
tar zxvf nginx-1.13.3.tar.gz
cd nginx-1.13.3
./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-file-aio --with-http_realip_module --with-http_gzip_static_module
make
mv /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx.old
cp objs/nginx /usr/local/nginx/sbin/
make upgrade
/usr/local/nginx/sbin/nginx -V
ps -ef|grep nginx
--------------------------------------------------maven----------------------------------------------
tar xvf apache-maven-3.3.9-bin.tar.gz
mv apache-maven-3.3.9 /usr/local/maven
MAVEN_HOME=/usr/local/maven
export MAVEN_HOME
export PATH=${PATH}:${MAVEN_HOME}/bin
mvn -v
--------------------------------------------------disconf----------------------------------------------
mkdir /home/disconf/online-resources
mkdir /home/disconf/war
ONLINE_CONFIG_PATH=/home/disconf/online-resources
WAR_ROOT_PATH=/home/disconf/war
export ONLINE_CONFIG_PATH
export WAR_ROOT_PATH
cd disconf-web
sh deploy/deploy.sh
--------------------------------------------------Mysql----------------------------------------------
yum install mysql-community-release-el6-5.noarch.rpm
yum install mysql-server
skip-grant-tables 跳过授权表,初始化root密码
use mysql;
update user set password=password('123') where user='root';
创建数据库指定字符集
UTF8: CREATE DATABASE `test2` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
创建用户
CREATE USER 'username'@'host' IDENTIFIED BY 'password';
授权
grant all privileges on *.* to root@"%" identified by 'root' with grant option;
grant select,insert,update,delete on *.* to 'username'@"%" with grant option; // *.* example 数据库名.表名
flush privileges;
source /data/file/xxxx.sql // 导入数据
-----------------------------------------------mariadb--------------------------------------------------
http://wb284551926.iteye.com/blog/2419388
-----------------------------------------------rabbitmq--------------------------------------------------
yum install erlang
#rpm --import https://www.rabbitmq.com/rabbitmq-release-signing-key.asc
#yum install rabbitmq-server-3.6.2-1.noarch.rpm
yum install rabbitmq-server.noarch
chkconfig rabbitmq-server on OR systemctl enable rabbitmq-server.service
service rabbitmq-server start OR systemctl start rabbitmq-server
rabbitmq-plugins enable rabbitmq_management
rabbitmqctl add_user user_admin passwd_admin // 创建rabbitmq的管理员
rabbitmqctl set_user_tags user_admin administrator // 赋予管理员权限
rabbitmqctl add_user user passwd // 创建rabbitmq的普通用户用于生产者和消费者
配置完web插件记得重启,不生效再次重启
-----------------------------------------------mongodb---------------------------------------------------
tar zxvf mongodb-linux-x86_64-rhel70-3.2.7.tgz
cd mongodb
mkdir config
vi conf/mongodb.cnf
#port=10001
dbpath=/data/mongodb/data
logpath=/data/mongodb/logs/mongodb.log
logappend=true
fork=true
#auth=true
mkdir logs
mkdir data
cd bin
./mongod -f ../conf/mongodb.cnf
默认端口27017
创建用户
use admin
db.createUser(
{
user: "Kneebrace#root@mongo",
pwd: "kb#root@mongo",
roles: [ { role: "root", db: "admin" } ]
}
)
use KB_ErrorLog
db.createUser(
{
user: "Kneebrace#wr@mongo",
pwd: "kb#wr@mongo",
roles: [ { role: "readWrite", db: "KB_ErrorLog" } ]
}
)
use KB_InfoLog
db.createUser(
{
user: "Kneebrace#wr@mongo",
pwd: "kb#wr@mongo",
roles: [ { role: "readWrite", db: "KB_InfoLog" } ]
}
)
use KB_Log
db.createUser(
{
user: "Kneebrace#wr@mongo",
pwd: "kb#wr@mongo",
roles: [ { role: "readWrite", db: "KB_Log" } ]
}
)
db.dropDatabase()删除数据库 db.system.users.find() 查询所有用户 db.system.users.remove({_id:"KB_Log.Kneebrace#wr@mongo"}) 删除id为xxx的用户
连接mongodb数据库
./mongo --host 10.9.17.174 --port 27017 --authenticationDatabase admin --username root --password *****
-------------------------------------------------------------tomcat---------------------------------------------------------------
<Context path="" docBase="/usr/local/apps/springweb1.ibatis此为项目路径" reloadable="false" crossContext="true" />
相关推荐
基于Centos7系统,由浅入深讲解如何部署Redis的四种模式,分别是:单机模式、主从模式、哨兵模式、集群模式。 完整原文:http://exp-blog.com/2018/09/14/pid-2285/ 同时提供Jedis客户端封装源码: ● 屏蔽Jedis与...
JAVA前后端分离项目部署笔记 本文档记录了JAVA前后端分离项目的部署笔记,涵盖了虚拟机安装、Node.js和Vue.js安装、Nginx安装、Mysql安装、Redis安装、JDK安装和Maven安装等多个方面的知识点。 1. 虚拟机安装与...
通过这份《知了课堂》的Django部署笔记,我们了解了在生产环境中部署Django项目的一般流程和相关命令。其中包括了在开发机上的准备工作(代码无bug、导出依赖包、代码版本控制)、在服务器上的准备工作(安装Python...
在本篇《Windows 2008R2平台Exchange2010安装部署笔记(一)》中,我们将深入探讨如何在Windows Server 2008 R2操作系统上安装和配置Microsoft Exchange Server 2010。这是一份详细的步骤指南,涵盖了从系统安装到邮件...
k8s部署笔记aarch64
标题“Centos实现端口转发:Rinetd部署笔记”指出本文的核心内容是关于在Centos操作系统中部署和使用Rinetd这一端口转发工具。端口转发是一种网络技术,允许将一个网络端口的流量转发到另一个端口,通常用于多种网络...
Redis入门到集群部署笔记
hadoop部署笔记,详细记录hadoop搭建过程!
仓湖一体化一键部署笔记
本文将以“Tomcat部署笔记”为引子,深入探讨在Windows环境下使用Eclipse IDE进行Tomcat部署的具体步骤及常见问题解决办法。 #### 二、准备工作 1. **环境准备**: - Windows操作系统 - Eclipse IDE - SVN...
阿里云部署笔记(含Docker运行MySQL、Nacos、Redis、Minio、MongoDB容器)
服务部署笔记 & 学习笔记 & 源代码-使用教程。 Docker&kubernetes 出于网路原因,国内访问 Docker Hub 有时会遇到困难,下载官方镜像更是望穿秋水。该教程解决这个问题,配置国内镜像加速器,为镜像下载加速。 网络&...
linux运维架构之企业级的云盘服务器部署笔记的全部资料,有所需软件的安装包和教程,以及所有用到的知识点的详细解析
本笔记将深入讲解如何在Linux环境下部署Mycat实现读写分离,以供有需求的技术人员参考。 一、Mycat简介 Mycat是基于MySQL协议的数据库中间件,它支持SQL 92标准,能够实现数据库的分布式、集群和读写分离。Mycat的...
Ubuntu是广泛应用于OpenStack部署的操作系统,以其稳定性和社区支持而闻名。 在“openstack ubuntu双节点部署教程”中,我们将探讨如何在两个Ubuntu服务器上搭建OpenStack环境。这种部署模式常用于高可用性设置,以...
### ELK部署笔记 #### 一、ELK概述与组件介绍 ##### 1.1 ELK Stack简介 ELK Stack(通常简称为ELK)是一个非常流行的开源工具套件,用于收集、存储、分析和展示大量日志数据。它由三个主要组件组成:Elasticsearch...
kubernetes,简称K8s,是用8代替8个字符“ubernete”而成的缩写。是一个开源的,用于管理云平台中多个主机上的容器化的应用。一步一步实践k8s集群部署,快速上手,只需看这个笔记即可。
在Centos 7环境下, 部署SS客户端 + Privoxy笔记 (需自备服务器)