This will install Confluence 6.13.3 on your computer. OK [o, Enter], Cancel [c] o Click Next to continue, or Cancel to exit Setup.
Choose the appropriate installation or upgrade option. Please choose one of the following: Express Install (uses default settings) [1], Custom Install (recommended for advanced users) [2, Enter], Upgrade an existing Confluence installation [3] 1
See where Confluence will be installed and the settings that will be used. Installation Directory: /opt/atlassian/confluence Home Directory: /var/atlassian/application-data/confluence HTTP Port: 8090 RMI Port: 8000 Install as service: Yes Install [i, Enter], Exit [e] i
Extracting files ...
Please wait a few moments while we configure Confluence.
Installation of Confluence 6.13.3 is complete Start Confluence now? Yes [y, Enter], No [n] n
Installation of Confluence 6.13.3 is complete Finishing installation ...
[root@node04 confluence]# service confluence start Warning: confluence.service changed on disk. Run 'systemctl daemon-reload' to reload units.
To run Confluence in the foreground, start the server with start-confluence.sh -fg executing using dedicated user: confluence If you encounter issues starting up Confluence, please see the Installation guide at http://confluence.atlassian.com/display/DOC/Confluence+Installation+Guide
Server startup logs are located in /opt/atlassian/confluence/logs/catalina.out --------------------------------------------------------------------------- Using Java: /opt/atlassian/confluence/jre//bin/java 2020-08-01 15:23:57,626 INFO [main] [atlassian.confluence.bootstrap.SynchronyProxyWatchdog] A Context element for ${confluence.context.path}/synchrony-proxy is found in /opt/atlassian/confluence/conf/server.xml. No further action is required --------------------------------------------------------------------------- Using CATALINA_BASE: /opt/atlassian/confluence Using CATALINA_HOME: /opt/atlassian/confluence Using CATALINA_TMPDIR: /opt/atlassian/confluence/temp Using JRE_HOME: /opt/atlassian/confluence/jre/ Using CLASSPATH: /opt/atlassian/confluence/bin/bootstrap.jar:/opt/atlassian/confluence/bin/tomcat-juli.jar Using CATALINA_PID: /opt/atlassian/confluence/work/catalina.pid Tomcat started.
// 发送消息 eventBus.post("this message from eventBus"); } }
日志输出:
1 2 3
ChildListener.accept, event = this message from eventBus ChildListener.consumeTask, event = this message from eventBus FatherListener.consume, event = this message from eventBus
while (true) { int currentIndex = index++; list.add(new MyReference(currentIndex)); System.out.println("the index = " + index + " MyReference inserted to list"); TimeUnit.MILLISECONDS.sleep(500); } }
while (true) { int currentIndex = index++; list.add(new WeakReference<>(new MyReference(currentIndex))); System.out.println("the index = " + index + " MyReference inserted to list"); TimeUnit.MILLISECONDS.sleep(500); } }
publicLinkedHashMapLruCache(int limit){ Preconditions.checkArgument(limit > 0, "this limit must big than zero."); this.limit = limit; this.cache = new InternalLruLinkedHashMapCache<>(limit); }
publicLinkedListLruCache(int limit){ Preconditions.checkArgument(limit > 0, "the limit big than zero."); this.limit = limit; this.keys = new LinkedList<K> (); this.cache = new HashMap<>(limit); }
@Override publicvoidput(K key, V value){ Preconditions.checkNotNull(key, "this key must nut null"); Preconditions.checkNotNull(value, "this value must nut null"); if(cache.size() >= limit) { K firstKey = keys.getFirst(); keys.remove(firstKey); cache.remove(firstKey); }
publicLinkedHashMapSoftReferencesLruCache(int limit){ Preconditions.checkArgument(limit > 0, "this limit must big than zero."); this.limit = limit; this.cache = new InternalLruLinkedHashMapCache<>(limit); }
@Override publicvoidput(K key, V value){ this.cache.put(key, new SoftReference<>(value)); }
@Override public V get(K key){ SoftReference<V> softReference = this.cache.get(key); if(Objects.isNull(softReference)) { returnnull; } return softReference.get(); }