xampp安装memcache监控
现在 memadmin
下载memadmin,解压到xampp/htdocs
下
查看 php 版本信息
1 |
|
windows 安装包下载:https://github.com/coreybutler/nvm-windows/releases
1 | # window 下配置 |
去官网现在并安装,这里安装路径选到D:\nodejs
我们要先配置npm的全局模块的存放路径以及cache的路径,例如我希望将以上两个文件夹放在NodeJS的主目录下,便在NodeJs下建立”node_global”及”node_cache”两个文件夹,输入以下命令改变npm配置1
2npm config set prefix "D:\nodejs\node_global"
npm config set cache "D:\nodejs\node_cache"
这个不配置也可以?(在系统环境变量添加系统变量NODE_PATH,输入路径D:\nodejs\node_global\node_modules)
此后所安装的模块都会安装到改路径下
1 | npm install -g cnpm --registry=https://registry.npm.taobao.org |
1 | cnpm -v |
druid连接池配置
filters=stat
属性类型是字符串,通过别名的方式配置扩展插件,常用的插件有:
监控统计用的 filter:stat
日志用的 filter:log4j
防御sql注入的 filter:wall
initialSize=5
初始化时建立物理连接的个数。初始化发生在显示调用init方法,或者第一次getConnection时,默认:0
minIdle=5
最小连接池数量
maxActive=30
最大连接池数量,默认:8
maxWait=60000
获取连接时最大等待时间,单位毫秒。配置了maxWait之后,缺省启用公平锁,并发效率会有所下降,如果需要可以通过配置useUnfairLock属性为true使用非公平锁。
com.mchange.v2.c3p0.ComboPooledDataSource 参数设置
阿里巴巴Dubbo
框架推荐配置参数,参数值根据情况调整
1 | -server |
第一种:这种写法会造成内存溢出
1 | Cipher cipher = Cipher.getInstance("RSA", new BouncyCastleProvider()); |
第二种:推荐这种写法
1 | // BC 可用 BouncyCastleProvider.PROVIDER_NAME 代替 |
还有一种写法是要替换jdk的jar包,不推荐
max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
配置 /etc/sysctl.conf
1 | $ vi /etc/sysctl.conf |
下载并安装 .zip 包
1 | wget https://artifacts.elastic.cn/downloads/elasticsearch/elasticsearch-5.0.2.zip |
下载并安装 .tar.gz 包
1 | wget https://artifacts.elastic.cn/downloads/elasticsearch/elasticsearch-5.0.2.tar.gz |