zhaowawj / learning_doc

0 stars 0 forks source link

webpages #3

Open zhaowawj opened 7 years ago

zhaowawj commented 7 years ago

http://javatar.iteye.com/blog/1345073 http://itindex.net/detail/55905-%E6%9C%8D%E5%8A%A1-%E6%B2%BB%E7%90%86-%E4%BC%98%E5%8C%96 http://timyang.net/architecture/service-management/ http://wenku.baidu.com/view/5b24544ae2bd960591c6772a.html

http://www.baeldung.com/jackson-annotations

http://www.onlineprogrammingbooks.com/way-go/

https://tomcat.apache.org/tomcat-7.0-doc/architecture/requestProcess.html http://www.infoq.com/cn/articles/distributed-real-time-monitoring-and-control-system

zhaowawj commented 7 years ago

bigdata http://spark.apache.org/streaming/ http://spark.apache.org/docs/latest/streaming-programming-guide.html

https://hadoop.apache.org/docs/r1.2.1/hdfs_design.html https://hive.apache.org/

http://hadoop.apache.org/

https://www.zabbix.org/wiki/Main_Page http://www.ttlsa.com/zabbix/install-zabbix-on-linux-5-ttlsa/

https://www.techonthenet.com/oracle/select.php https://www.mapr.com/blog/in-depth-look-hbase-architecture http://stackoverflow.com/questions/16929832/difference-between-hbase-and-hadoop-hdfs https://www.mapr.com/blog/hbase-and-mapr-db-designed-distribution-scale-and-speed#.VcKFNflVhBc https://www.tutorialspoint.com/hbase/hbase_architecture.htm http://searchcloudcomputing.techtarget.com/definition/Hadoop

https://github.com/dianping/cat https://github.com/ctripcorp/apollo

https://www.gitbook.com/book/chenryn/elk-stack-guide-cn/details

zhaowawj commented 7 years ago

zk http://www.cloudera.com/documentation/archive/cdh/4-x/4-7-1/CDH4-Installation-Guide/cdh4ig_topic_21_4.html http://archive.cloudera.com/cdh4/cdh/4/zookeeper/zookeeperAdmin.html

http://curator.apache.org/curator-recipes/leader-latch.html http://shift-alt-ctrl.iteye.com/blog/1983945 http://colobu.com/2014/12/12/zookeeper-recipes-by-example-1/

zhaowawj commented 7 years ago

数据库语句:

sqlplus /nolog conn sys/sys as sysdba sqlplus 登出 exit

查所有用户 select * from all_users; 查表空间文件路径 select * from dba_data_files; 用户解锁 alter user identified by account unlock; alter user account unlock;

  1. select tablespace_name, table_name from user_tables; 查看用户的表
  2. describe t_cmp_perf_stat;
  3. drop t_cmp_perf_stat; 删表
  4. select user from dual; 当前用户
  5. select sys_context('userenv', 'instance_name') from dual; sid
  6. rename to ; 表重命名
  7. 执行sql文件: @/path/to/file.sql 文件最后一行加/

建表空间、建用户 create tablespace zmxtest datafile '/opt/oracle/oradb/oradata/crmdb/zmxtest' size 512M autoExtend on next 512M maxsize 10240M; create user zmxtest identified by <password> default tablespace zmxtest; alter user zmxtest quota unlimited on zmxtest; grant connect, resource, create any view, create database link to zmxtest;

行数 select count(1) from t_cmp_perf_stat; 删数据 delete from t_cmp_perf_stat where begintime < to_date('2016-10-24 00:00:00', 'yyyy-mm-dd hh24:mi:ss');

SELECT * FROM DBA_DATA_FILES; alter database datafile '/opt/oracle/oradb/oradata/crmdb/ops.dbf' autoextend on; alter database datafile '/opt/oracle/oradb/oradata/crmdb/ops.dbf' autoextend on next 512M maxsize 10240M;

打开连接池: SELECT * FROM DBA_CPOOL_INFO;

exec DBMS_CONNECTION_POOL.START_POOL('SYS_DEFAULT_CONNECTION_POOL');

exec DBMS_CONNECTION_POOL.ALTER_PARAM ('','minsize','10'); exec DBMS_CONNECTION_POOL.ALTER_PARAM ('','maxsize','100');

用户角色很重要,需要弄清楚sys,system,sysdba等概念

oracle重启: (1) 以oracle身份登录数据库,命令:su – oracle (2) 进入Sqlplus控制台,命令:sqlplus /nolog (3) 以系统管理员登录,命令:connect / as sysdba (4) 启动数据库,命令:startup (5) 如果是关闭数据库,命令:shutdown immediate (6) 退出sqlplus控制台,命令:exit (7) 进入监听器控制台,命令:lsnrctl (8) 启动监听器,命令:start (9) 退出监听器控制台,命令:exit (10) 重启数据库结束


查看redo切换频度:

select sequence#,first_time,nexttime,round(((first_time-nexttime)24)60*60,2) diff from (select sequence#,first_time,lag(first_time) over(order by sequence#) nexttime from v$log_history where thread#=1) order by sequence# desc;

查看当前redo状态:

select group#,members,bytes/1024/1024,status from v$log;

创建新的redo

alter database add logfile group 7 ('/opt/oracle/oradb/oradata/crmdb/redo07.log') size 1024M; alter database add logfile group 8 ('/opt/oracle/oradb/oradata/crmdb/redo08.log') size 1024M; alter database add logfile group 9 ('/opt/oracle/oradb/oradata/crmdb/redo09.log') size 1024M;

切换状态为current redo到新创建的上面(配合查看redo状态命令,多次切换)

alter system switch logfile;

设置新创建的redo为检查点

alter system checkpoint;

删除老的redo

alter database drop logfile group 4; alter database drop logfile group 5; alter database drop logfile group 6;


zhaowawj commented 7 years ago

setsid java -jar mock.jar > mock.out

zhaowawj commented 7 years ago

https://www.tutorialspoint.com/easymock/easymock_overview.htm https://github.com/jayway/powermock/wiki/mockitousage https://devlearnings.wordpress.com/2010/05/13/easymock-expectationeasymock-expect-flavours-explained/

zhaowawj commented 7 years ago

java http://www.java67.com/2012/08/what-are-difference-between-wait-and.html http://howtodoinjava.com/core-java/multi-threading/difference-between-sleep-and-wait/ http://stackoverflow.com/questions/1036754/difference-between-wait-and-sleep

http://stackoverflow.com/questions/7606953/behavior-of-a-java-process-in-case-of-outofmemoryerror http://weblog.janek.org/Archive/2004/12/20/ExceptionWhenWritingToAFu.html

http://freecontent.manning.com/stack-safe-recursion-in-java/ https://blog.jooq.org/2013/03/29/inadvertent-recursion-protection-with-java-threadlocals/

http://www.pixelstech.net/article/1440837434-Set-file-permission-in-Java http://www.avajava.com/tutorials/lessons/how-do-i-set-the-default-file-and-directory-permissions.html

https://plumbr.eu/blog/memory-leaks/why-does-my-java-process-consume-more-memory-than-xmx http://stackoverflow.com/questions/1051295/how-to-find-how-much-disk-space-is-left-using-java http://stackoverflow.com/questions/10509942/getting-memory-statistics-in-java-runtime-vs-memorymxbean http://stackoverflow.com/questions/12807797/java-get-available-memory

zhaowawj commented 7 years ago

http://sebastien.godard.pagesperso-orange.fr/man_iostat.html

dd if=/dev/zero of=/home/zmx/rootex/file1 bs=1024k count=1024 & https://www.gnu.org/software/coreutils/manual/html_node/dd-invocation.html http://bittstriim.blogspot.com.tr/2009/11/simulating-full-disk-in-linux.html

如何选购硬盘 http://www.alipiapia.com/choose/html/3078.html

http://stackoverflow.com/questions/26614423/trouble-with-bash-shell-script-attempting-to-post-variable-json-data-using-curl

http://www.winpcap.org/ntar/draft/PCAP-DumpFileFormat.html

HxD only for windows

zhaowawj commented 7 years ago

debug bash: http://coolshell.cn/articles/1379.html

zhaowawj commented 7 years ago

java io http://docs.oracle.com/javase/tutorial/essential/io/index.html

http://www.thinkplexx.com/learn/howto/java/system/java-resource-loading-explained-absolute-and-relative-names-difference-between-classloader-and-class-resource-loading

zhaowawj commented 7 years ago

https://discuss.elastic.co/t/multiple-group-by/25479 https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-bucket-script-aggregation.html https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-scripting-security.html

zhaowawj commented 7 years ago

http://www.developersite.org/904-227099-groovy http://mrhaki.blogspot.com.tr/2009/09/groovy-goodness-using-groupby-method.html http://blogs.msmvps.com/theproblemsolver/2013/04/15/the-angularjs-scope-is-not-the-mvc-model/ http://jimhoskins.com/2012/12/14/nested-scopes-in-angularjs.html https://toddmotto.com/everything-you-wanted-to-know-about-javascript-scope/ https://nathanleclaire.com/blog/2014/04/19/5-angularjs-antipatterns-and-pitfalls/ https://github.com/angular/angular.js/wiki/Understanding-Scopes https://medium.com/@mnemon1ck/why-you-should-not-use-angularjs-1df5ddf6fc99#.t0umet8bc

zhaowawj commented 7 years ago

https://www.digitalocean.com/community/tutorials/openssl-essentials-working-with-ssl-certificates-private-keys-and-csrs/ https://www.digitalocean.com/community/tutorials/java-keytool-essentials-working-with-java-keystores https://www.sslshopper.com/article-most-common-java-keytool-keystore-commands.html https://www.sslshopper.com/tomcat-ssl-installation-instructions.html https://serverfault.com/questions/266232/what-is-a-challenge-password