- 博客(41)
- 收藏
- 关注
原创 redis配置优化
redis的配置注释都很详细只是又上网查了一下,跟翻译一样# Redis configuration file example.## Note that in order to read the configuration file, Redis must be# started with the file path as first argument:## ./redis-server /path/to/redis.conf# Note on units: when memory siz
2021-11-18 15:57:02
1058
原创 nginx配置优化
一般默认配置即可根据需要添加#运行用户,配置用户或者组,默认为nobody nobody。user root;#启动进程,通常设置成和CPU核心数相等,用lscpu命令查看#最优值取决于许多因素,包括(但不限于)CPU核的数量、存储数据的硬盘驱动器的数量以及加载模式。#当您有疑问时,将其设置为可用的cpu核数将是一个好的初始值(“auto“将尝试自动检测)。worker_processes auto;#全局错误日志,路径,级别。这个设置可以放入全局块,http块,server块,#级别
2021-11-18 15:48:08
301
原创 tomcat优化配置
一般默认值即可catalina.sh配置jvm设置,在注释文件下配置JAVA_OPTS#-Xms:JVM初始化堆内存大小#-Xmx:JVM堆的最大内存,默认值为物理内存的1/4#-Xss:线程栈大小#-XX:PermSize:JVM非堆区初始内存分配大小#-XX:MaxPermSize:JVM非堆区最大内存#JDK 8 版本之后方法区(HotSpot 的永久代)被彻底移除了(JDK1.7 就已经开始了),取而代之是元空间,元空间使用的是直接内存,#永久代配置无效:-XX:PermSize=2
2021-11-18 15:31:52
109
原创 pscp.exe,实现Windows和Linux文件传输,bat脚本
废话不多说,也是在网上看到的教程,再记录一下下载https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html找到pscp.exe下载安装放到C:\Windows\System32下,或者配置环境变量使用@echo offchcp 65001echo "请确保本地已安装pscp.exe"pausepscp.exe -P 22 -pw 密码 ../xx.war ../ss.war ../ee.war 用户名@172.16.1.
2020-07-22 17:12:52
1154
原创 centos 开机启动
开机启动脚本vi /etc/rc.d/rc.local在文件末尾写上 启动脚本/usr/local/webserver/nginx/sbin/nginx /opt/tomcat-website/bin/startup.sh授权chmod +x /etc/rc.d/rc.local
2020-07-04 12:01:55
125
原创 linux 时间同步修改
同步阿里云时间服务器,并把时间写入硬件yum install ntpdatentpdate -u ntp.aliyun.com && hwclock -w
2020-05-23 11:38:16
216
原创 tomcat日志catalina,nginx日志分割脚本
tomcat日志catalina,nginx日志分割脚本tomcat日志catalina,nginx日志分割脚本catalina分割脚本nginx日志分割脚本crontab 定时任务tomcat日志catalina,nginx日志分割脚本catalina分割脚本#!/bin/bash#此脚本用于自动分割tomcat的日志,catalina.out#每天00:00执行此脚本 将前一天的catalina.out重命名为catalina-xxxx-xx-xx.log格式,并重新打开日志文件#tomca
2020-05-14 14:36:02
252
原创 spring activemq 配置文件
spring activemq<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jms="http://www.springfr
2017-09-19 17:13:44
293
原创 linux下运行jar
linux 运行jar 包#!/bin/bash#nohup /export/businessServer-test/jdk8/jre/bin/java -jar friendData.jar & >/dev/null 2>&1tail -100f nohup.out~
2017-08-11 18:03:26
275
原创 微信Jssdk网页开发流程
微信Jssdk网页开发流程绑定域名 不带http://的 外网映射地址引入js 根据官方文档介绍引入即可 http://mp.weixin.qq.com/wiki/7/aaa137b55fb2e0456bf8dd9148dd613f.html#.E6.AD.A5.E9.AA.A4.E4.BA.8C.EF.BC.9A.E5.BC.95.E5.85.A5JS.E6.96.87.E4.BB.B6
2017-04-06 15:27:28
284
原创 maven 创建项目
mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-WebApp -DarchetypeArtifactId=maven-archetype-webapp -DinteractiveMode=false为了使Maven的web项目支持Eclipse,在命令行下,cd到CounterWebApp目录下,然后
2016-10-04 15:44:59
200
原创 mysql 免安装版 配置
1.解压mysql-5.7.12-win32.zip文件。2.在解压出来的文件夹中的BIN文件夹加入环境变量。3.在解压出来的文件夹里建立data文件夹。4.复制my-default.ini并将复制后的副本改名为my.ini文件,之后对my文件进行修改,将basedir和datadir进行相应的路径赋值。5.在CMD中,进入建立的data文件夹,然后执行“m
2016-06-23 16:47:32
213
原创 Eclipse 如何添加 更换字体
1. 打开eclipse-->Window-->Preferences-->General-->appearance-->Colors and Fonts, 点开后选择Basic之后选择Text Font 2.点击右边的Edit...可以看到图的左下角有个显示更多字体点击进去会打开windows 的所有字体3.选择你想要的字体,注意,这里显示的字体都是隐藏的我们只需要选中想
2016-06-23 16:24:52
1559
原创 oracle 密码永不过期
过期的原因一般有两种可能:一.由于oracle11g中默认在default概要文件中设置了“PASSWORD_LIFE_TIME=180天”所导致。二.由于oracle11g中默认在default概要文件中设置了“FAILED_LOGIN_ATTEMPTS=10次”,当输入密码错误次数达到设置值将导致此问题。如果是第一种情况解决方法如下: 1、查看用户的proifle是哪个,一般是defa
2016-05-12 15:15:23
731
原创 表空间
删除表空间同时删除数据文件drop tablespace test_data including contents and datafiles; 删除用户drop user ×× cascade查询用户对应默认表空间select username,default_tablespace from dba_users;查询系统所有表空间select
2016-05-12 15:11:40
357
原创 hibernate 获取SessionFactory的方法
本次使用hibernate 4.3.11 获取Sessionfactory的方法太乱,搞不清楚了package com.test.db;import org.hibernate.Session;import org.hibernate.SessionFactory;import org.hibernate.boot.registry.StandardServiceRegistryBuilder
2016-05-12 14:39:29
576
原创 hibernate SessionFactory的获取方法
Hibernate 4 已经将configuration的buildSessionFactory方法已经划线了,说明已经过时了。 Configuration configuration = new Configuration().configure(); SessionFactory sessionFactory = configuration.buildSessionFactory(
2016-05-09 23:06:05
426
原创 公共 DNS
腾讯DNS(DNSPod Public DNS+)使用同一个服务IP,号称拥有安全零劫持、准确不丢包、快速无等待、稳定多容灾的优势。119.29.29.29Public DNS+地址:https://www.dnspod.cn/Products/Public.DNS/百度DNS据官方介绍,百度公共DNS服务具有云防护、无劫持、以及更加精准等特性。
2016-05-09 13:10:41
1944
原创 批处理
::判断时间段,执行命令@echo offset "t=%time: =0%"if "%t:~,5%" geq "08:10" if "%t:~,5%" leq "08:40" goto :Next::if "%t:~,5%" geq "21:50" if "%t:~,5%" leq "21:54" goto :Nextexit/
2016-04-11 14:13:36
293
原创 sql 用户角色
1.查看所有用户:select * from dba_users; select * from all_users; select * from user_users; 2.查看用户或角色系统权限(直接赋值给用户或角色的系统权限):select * from dba_sys_privs; select * from user_sys_privs; (查看
2016-04-11 14:05:18
393
原创 数据库驱动程序URL
jdbc:oracle:thin:@127.0.0.1:1521:orcljdbc:mysql://localhost:8090/MySQLoracle driver="oracle.jdbc.driver.OracleDriver" url="jdbc:oracle:thin:@localhost:1521:数据库名" jdbc:oracle:thin:@
2016-04-11 14:03:23
693
原创 oracle For循环和触发器Tigger
--循环begin for cycle in (select id, testcycle from specialpapers) loop if (cycle.testcycle is null) then update specialpapers set testcycle = 48 where id = cycle.id; end if; en
2016-04-05 16:57:53
3710
原创 oracle 常用操作
/* 表空间test1 */create tablespace test1datafile 'D:\oracledabase\test1.dbf' size 30Mautoextend on next 30M maxsize unlimited logging extent management local; /* 用户名user1 密码user */create
2016-03-15 16:29:26
214
原创 editplus 下载
官网:https://www.editplus.com/download.html汉化: http://www.cnblogs.com/hanzisearcher/archive/2012/09/14/editplus.html注册码:http://www.jb51.net/tools/editplus/
2016-03-13 18:09:36
1100
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人