How to install Ontology Block chain browser Development under Ubuntu 14.04
This article mainly introduces how to install Ontology blockchain browser development under Ubuntu 14.04. it has a certain reference value, and interested friends can refer to it. I hope you can learn a lot after reading this article.
Warm reminder: Ontology needs to be deployed on a stand-alone machine. For more information, please see Ubuntu 14.04, Ontology development environment construction, deployment and testing.
Install Java
Please refer to: https://my.oschina.net/uchihamadara/blog/1798979
Install Maven
Please refer to: https://my.oschina.net/uchihamadara/blog/1798979
Install MariaDB 10.2
Official website link
Add sourc
Sudo apt-key adv-- recv-keys-- keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943dbsudo add-apt-repository 'deb [arch=amd64,i386,ppc64el] http://mirrors.tuna.tsinghua.edu.cn/mariadb/repo/10.2/ubuntu trusty main'
Install MariaDB
Sudo apt-get updatesudo apt-get install software-properties-commonsudo apt-get install mariadb-server
During installation, you will be asked to set the root password for MariaDB.
Enter MariaDB on the command line
Blockchain@ThinkPad-T460:~$ mysql-uroot-pEnter password: Welcome to the MariaDB monitor. Commands end with; or\ g.Your MariaDB connection id is 51Server version: 10.2.14-MariaDB-10.2.14+maria~trusty-log mariadb.org binary distributionCopyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.Type 'help;' or'\ h' for help. Type'\ c'to clear the current input statement.MariaDB [(none)] > show databases; +-+ | Database | +-+ | information_schema | | mysql | | performance_schema | +-+ 3 rows in set (0.00 sec) MariaDB [(none)] > exit Byeblockchain@ThinkPad-T460:~$
MariaDB installed successfully.
Install Nginxblockchain@ThinkPad-T460:~$ sudo add-apt-repository ppa:nginx/stableblockchain@ThinkPad-T460:~$ sudo apt-get updateblockchain@ThinkPad-T460:~$ sudo apt-get install software-properties-commonblockchain@ThinkPad-T460:~$ sudo apt-get install nginx
View nginx version
Blockchain@ThinkPad-T460:~$ nginx-vnginx version: nginx/1.12.2blockchain@ThinkPad-T460:~$
Start nginx
Blockchain@ThinkPad-T460:~$ sudo / etc/init.d/nginx startstart: Job is already running: nginxblockchain@ThinkPad-T460:~$ blockchain@ThinkPad-T460:~$ ps-ef | grep nginxroot 15943 1 0 15:39? 00:00:00 nginx: master process / usr/sbin/nginx-g daemon on; master_process on Www-data 15945 15943 0 15:39? 00:00:00 nginx: worker process www-data 15946 15943 0 15:39? 00:00:00 nginx: worker process www-data 15947 15943 0 15:39? 00:00:00 nginx: worker process www-data 15948 15943 0 15:39? 00:00:00 nginx: worker process blockch+ 16003 2577 0 15:51 pts/1 00:00:00 grep-color=auto nginx
Then visit http://localhost/ and the following page appears, indicating that everything is fine.
Install Node.js
Click on the Node.js official website and select the appropriate version to extract the compressed file.
Blockchain@ThinkPad-T460:~$ tar xvJf Downloads/node-v8.11.2-linux-x64.tar.xz
Configure environment variables
Export NODE_HOME=$HOME/node-v8.11.2-linux-x64export PATH=$NODE_HOME/bin:$PATH
View version number
Blockchain@ThinkPad-T460:~$ node-vv8.11.2blockchain@ThinkPad-T460:~$ npm-v5.6.0 blockchained ThinkPadRTT460 PlayStation $
At this point, the Node.js installation is complete.
Download Ontology blockchain exploreblockchain@ThinkPad-T460:~/GitClone$ git clone https://github.com/ontio/ontology-explorerCloning into 'ontology-explorer'...remote: Counting objects: 635, done.remote: Compressing objects: 100% (326 KiB/s), done.remote: Total 635 (delta 282), reused 583 (delta 242), pack-reused 0Receiving objects: 100% (635 delta), 5.70 MiB | 187.00 KiB/s, done.Resolving deltas: 100% (282 delta 282), done.Checking connectivity... Done.blockchain@ThinkPad-T460:~/GitClone$ configure Ontology blockchain explorer backend
Enter the sql subdirectory under the back-end directory of the ontology-explorer project
Blockchain@ThinkPad-T460:~/GitClone/ontology-explorer/back-end$ cd sql/ Pwd/home/blockchain/GitClone/ontology-explorer/back-end/sqlblockchain@ThinkPad-T460:~/GitClone/ontology-explorer/back-end/sql$ ls-lttotal 20 RW pwd/home/blockchain/GitClone/ontology-explorer/back-end/sqlblockchain@ThinkPad-T460:~/GitClone/ontology-explorer/back-end/sql$ ls-1 blockchain blockchain 941 May 23 10:58 tbl_ont_block.sql-rw-rw-r-- 1 blockchain blockchain 637 May 23 10:58 tbl_ont_current.sql-rw-rw-r-- 1 blockchain blockchain 831 May 23 10:58 tbl_ont_ontid_detail.sql-rw-rw -r blockchain blockchain-1 blockchain blockchain 1065 May 23 10:58 tbl_ont_txn_detail.sql-rw-rw-r-- 1 blockchain blockchain 432 May 23 10:58 view_ont_transaction.sqlblockchain@ThinkPad-T460:~/GitClone/ontology-explorer/back-end/sql$
Set up the _ explorer _ library in MariaDB, and create the corresponding tables or views according to the above five sql files under explorer.
MariaDB [(none)] > use explorer; Reading table information for completion of table and column namesYou can turn off this feature to get a quicker startup with-ADatabase changedMariaDB [explorer] > show tables +-- + | Tables_in_explorer | +-+ | tbl_ont_block | | tbl_ont_current | | tbl_ont_ontid_detail | | tbl_ont_txn_detail | | view_ont_transaction | +-+ 5 rows in set (0.00 sec) MariaDB [explorer] >
Enter the lib subdirectory under the back-end directory of the ontology-explorer project
Blockchain@ThinkPad-T460:~/GitClone$ cd ontology-explorer/back-end/lib/; ls-lttotal 4608 RW Murray RW Murray-1 blockchain blockchain 4717357 May 16 17:58 ontology-sdk-java.jarblockchain@ThinkPad-T460:~/GitClone/ontology-explorer/back-end/lib$
The mvn install jar package, as shown below
Blockchain@ThinkPad-T460:~/GitClone/ontology-explorer/back-end/lib$ mvn install:install-file-DgroupId=com.github.ontio-DartifactId=javasdk-Dversion=v1.0-Dpackaging=jar-Dfile=ontology-sdk-java.jar [INFO] Scanning for projects... [INFO] [INFO]- -[INFO] Building Maven Stub Project (No POM) 1 [INFO]- -[INFO] [INFO]-maven-install-plugin:2.4:install-file (default-cli) @ standalone-pom-- [INFO] Installing / home/blockchain/GitClone/ontology-explorer/back-end/lib/ontology-sdk-java.jar to / home/blockchain/.m2/repository/com/github/ontio/javasdk/v1.0/javasdk-v1.0.jar [INFO]- -[INFO] BUILD SUCCESS [INFO]- [INFO] Total time: 2.263 s [INFO] Finished at: 2018-05-23T11:04:03+08:00 [INFO] Final Memory: 6M/141M [INFO]-- -blockchain@ThinkPad-T460:~/GitClone/ontology-explorer/back-end/lib$
Return to the back-end directory of the ontology-explorer project
Blockchain@ThinkPad-T460:~/GitClone/ontology-explorer/back-end/lib$ cd.. Ls-lttotal 44drwxrwxr-x 4 blockchain blockchain 4096 May 23 10:58 src-rw-rw-r-- 1 blockchain blockchain 6468 May 23 10:58 mvnw-rw-rw-r-- 1 blockchain blockchain 4994 May 23 10:58 mvnw.cmd-rw-rw-r-- 1 blockchain blockchain 3592 May 23 10:58 pom.xmldrwxrwxr-x 2 blockchain blockchain 4096 May 23 10:58 sqldrwxrwxr-x 2 blockchain blockchain 4096 May 23 10:58 configdrwxrwxr-x 2 blockchain blockchain 4096 May 23 10:58 lib-rw- Rw-r-- 1 blockchain blockchain 7651 May 23 10:58 LICENSEblockchain@ThinkPad-T460:~/GitClone/ontology-explorer/back-end$
Maven compilation and packaging
Mvn clean package
At this point, an error is reported.
Blockchain@ThinkPad-T460:~/GitClone/ontology-explorer/back-end$ mvn clean package [INFO] Scanning for projects... [INFO] [INFO]- -[INFO] Building explorer 1.0.0-SNAPSHOT [INFO]-[WARNING] The POM for com .github.ontio: javasdk:jar:v1.1 is missing No dependency information available [INFO]-[INFO] BUILD FAILURE [INFO]- [INFO] Total time: 2.704 s [INFO] Finished at: 2018-05-16T20:49:08+08:00 [INFO] Final Memory: 17M/200M [INFO]-- [ERROR] Failed to execute goal on project explorer: Could not resolve dependencies for project com.ont:explorer:jar:1.0.0-SNAPSHOT: Failure to find com.github.ontio:javasdk:jar:v1.1 in http://maven.aliyun.com/nexus/content/groups/public/ was cached in the local repository Resolution will not be reattempted until the update interval of alimaven has elapsed or updates are forced-> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the-e switch. [ERROR] Re-run Maven using the-X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionExceptionblockchain@ThinkPad-T460:~/GitClone/ontology-explorer/back-end$
Open the pom.xml file in the directory and find the
Com.github.ontio javasdk v1.1
Change v1.1 to version > v1.0, then re-enter mvn clean package and report an error again
[ERROR] [2018-05-16 21:11:54] org.apache.tomcat.jdbc.pool.ConnectionPool [181]-Unable to create initial connections of pool.java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES) at com.mysql.jdbc.SQLError.createSQLException (SQLError.java:964) at com.mysql.jdbc.MysqlIO.checkErrorPacket (MysqlIO.java:3973) at com.mysql.jdbc.MysqlIO.checkErrorPacket (MysqlIO.java:3909) at com.mysql.jdbc.MysqlIO.checkErrorPacket (MysqlIO.java:873) at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication (MysqlIO.java:1710) at com.mysql.jdbc.MysqlIO.doHandshake (MysqlIO.java:1226) at com.mysql.jdbc.ConnectionImpl.coreConnect (ConnectionImpl.java:2191) at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly (ConnectionImpl.java:2222) at com.mysql .jdbc.ConnectionImpl.createNewIO (ConnectionImpl.java:2017) at com.mysql.jdbc.ConnectionImpl. (ConnectionImpl.java:779) at com.mysql.jdbc.JDBC4Connection. (JDBC4Connection.java:47) at sun.reflect.NativeConstructorAccessorImpl.newInstance0 (Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance (NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance (DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor. NewInstance (Constructor.java:423) at com.mysql.jdbc.Util.handleNewInstance (Util.java:425) at com.mysql.jdbc.ConnectionImpl.getInstance (ConnectionImpl.java:389) at com.mysql.jdbc.NonRegisteringDriver.connect (NonRegisteringDriver.java:330) at org.apache.tomcat.jdbc.pool.PooledConnection.connectUsingDriver (PooledConnection.java:310) at org.apache.tomcat.jdbc.pool.PooledConnection.connect (PooledConnection.java:203 ) at org.apache.tomcat.jdbc.pool.ConnectionPool.createConnection (ConnectionPool.java:735) at org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection (ConnectionPool.java:667) at org.apache.tomcat.jdbc.pool.ConnectionPool.init (ConnectionPool.java:482) at org.apache.tomcat.jdbc.pool.ConnectionPool. (ConnectionPool.java:154) at org.apache.tomcat.jdbc.pool.DataSourceProxy.pCreatePool (DataSourceProxy .java: 118) at org.apache.tomcat.jdbc.pool.DataSourceProxy.createPool (DataSourceProxy.java:107) at org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection (DataSourceProxy.java:131) at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection (DataSourceUtils.java:111)
Judging from this error, it is the Mysql password. Modify the application.properties file under the config subdirectory of the back-end directory of ontology-explorer project
Blockchain@ThinkPad-T460:~/GitClone/ontology-explorer/back-end$ vim config/application.properties
Find database.
# database# Specify the DBMSspring.jpa.database = MYSQLspring.datasource.driverClassName = com.mysql.jdbc.Driverspring.datasource.url = jdbc:mysql://localhost:3306/explorer?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNullspring.datasource.username = rootspring.datasource.password = 123
Modify the appropriate user name and password. Then re-enter mvn clean package, and finally succeed.
Results: Tests run: 1, Failures: 0, Errors: 0 Skipped: 0 [INFO] [INFO]-- maven-jar-plugin:2.6:jar (default-jar) @ explorer- [INFO] Building jar: / home/blockchain/GitClone/ontology-explorer/back-end/target/explorer-1.0.0-SNAPSHOT.jar [INFO] [INFO]-spring-boot-maven-plugin:1.5.9.RELEASE:repackage (default) @ explorer- [INFO]- -[INFO] BUILD SUCCESS [INFO]- -[INFO] Total time: 55.571 s [INFO] Finished at: 2018-05-23T16:54:34+08:00 [INFO] Final Memory: 39M/280M [INFO]-- -blockchain@ThinkPad-T460:~/GitClone/ontology-explorer/back-end$
At this point, under the target subdirectory of the back-end folder of the ontology-explorer project, you can see the compiled explorer-1.0.0-SNAPSHOT.jar.
Blockchain@ThinkPad-T460:~/GitClone/ontology-explorer/back-end$ ls-lt target/total 40812 blockchain blockchain 41691335 May 23 16:54 explorer-1.0.0-SNAPSHOT.jar-rw-rw-r-- 1 blockchain blockchain 68317 May 23 16:54 explorer-1.0.0-SNAPSHOT.jar.originaldrwxrwxr-x 2 blockchain blockchain 4096 May 23 16:54 maven-archiverdrwxrwxr-x 2 blockchain blockchain 4096 May 23 16:54 surefire-reportsdrwxrwxr- X 3 blockchain blockchain 4096 May 23 16:53 test-classesdrwxrwxr-x 3 blockchain blockchain 4096 May 23 16:53 generated-test-sourcesdrwxrwxr-x 4 blockchain blockchain 4096 May 23 16:53 classesdrwxrwxr-x 3 blockchain blockchain 4096 May 23 16:53 generated-sourcesdrwxrwxr-x 3 blockchain blockchain 4096 May 23 16:53 maven-statusblockchain@ThinkPad-T460:~/GitClone/ontology-explorer/back-end$
At this point, the Ontology blockchain explorer backend configuration is complete.
Configure the Ontology blockchain explorer front end
Modify the application.properties file under the config subdirectory of the back-end folder of the ontology-explorer project, and find blockchain param
# port###server.port=8090#blockchain param#node.restful.url = http://polaris1.ont.io:20334node.restful.url = http://127.0.0.1:20334node.amount=4#node.restful.url_0=http:// Polaris1.ont.io:20334node.restful.url_0= http://127.0.0.1:20334#node.restful.url_1=http://polaris2.ont.io:20334node.restful.url_1=http://127.0.0.1:20335#node.restful.url_2=http://polaris3.ont.io:20334node.restful.url_2=http://127.0.0.1:20336#node.restful.url_3=http://polaris4.ont.io:20334node.restful.url_ 3 = http://127.0.0.1:20337
Modify the corresponding node.restful.url and save the exit.
Modify the prod.env.js file in the config subdirectory of the front-end folder of the ontology-explorer project, and the content before modification is
'use strict'module.exports = {NODE_ENV:' "production", BASE_URL:'"https://ont.io/"', API_URL:'" https://explorer.ont.io/api/v1/explorer"', BC_URL:'"https://srv.ont.io:10443/api/v1/"'}
The modified content is
'use strict'module.exports = {NODE_ENV:' "production", BASE_URL:'"https://ont.io/"', API_URL:'" http://127.0.0.1:8090/api/v1/explorer"', BC_URL:'"https://srv.ont.io:10443/api/v1/"'}
Return to the ontology-explorer project front-end directory
Blockchain@ThinkPad-T460:~/GitClone/ontology-explorer/front-end$ npm install > uglifyjs-webpack-plugin@0.4.6 postinstall / home/blockchain/GitClone/ontology-explorer/front-end/node_modules/webpack/node_modules/uglifyjs-webpack-plugin > node lib/post_install.jsnpm notice created a lockfile as package-lock.json. You should commit this file.npm WARN ajv-keywords@3.2.0 requires a peer of ajv@ ^ 6.0.0 but none is installed. You must install peer dependencies yourself.npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os": "darwin", "arch": "any"} (current: {"os": "linux" "arch": "x64"}) added 1379 packages in 104.893sblockchainThinkPadMill T460VANG node build/build.jsHash: fba06f0cd586b9cfb58fVersion: webpack 3.12.0Time: 48302ms Asset Size Chunks Chunk Names static/fonts/fontawesome-webfont.woff 98 kB [emitted] static/img/logo.96d4d40.png 13.7 kB [emitted] static/js/vendor.012a6941fa3d926e8278.js 241 kB 0 [emitted] vendor static/js/app.d52192ac235d91770dfd.js 142 kB 1 [emitted] appstatic/ js/manifest.2ae2e69a05c33dfc65f8.js 857 bytes 2 [emitted] manifest static/css/app.4bac9a6dc37015ba26010943391ac5eb.css 14.1 kB 1 [emitted] appstatic/css/app.4bac9a6dc37015ba26010943391ac5eb.css.map 29. 7 kB [emitted] static/js/vendor.012a6941fa3d926e8278.js.map 1.04 MB 0 [emitted] vendor static/js/app.d52192ac235d91770dfd.js.map 393 kB 1 [emitted] app static/js/manifest.2ae2e69a05c33dfc65f8.js.map 4.97 kB 2 [emitted] manifest Index.html 1.36 kB [emitted] static/css/bootstrap-4.0.0-litera.min.css 146 kB [emitted] static/css/font-awesome.min.css 31 kB [emitted] Static/css/main.css 11 kB [emitted] static/fonts/fontawesome-webfont.eot 166 kB [emitted] static/fonts/fontawesome-webfont.svg 444 kB [emitted] [big] static/ Fonts/fontawesome-webfont.ttf 166 kB [emitted] static/img/timg.482a7da.gif 36.7 kB [emitted] static/fonts/fontawesome-webfont.woff2 77.2 kB [emitted] static/fonts/FontAwesome.otf 135 kB [emitted] static/fonts/SourceSansPro-Bold.otf 235 kB [emitted] static/fonts/SourceSansPro-ExtraLight.otf 222 kB [emitted] static/img/backimg.png 1.14 kB [emitted] Static/img/favicon.ico 9.66 kB [emitted] static/img/footerlogo.png 10.5 kB [emitted] static/fonts/SourceSansPro-Regular.otf 230 kB [emitted] Static/img/ontlogo.png 10.7 kB [emitted] static/img/header_bg.jpg 16.4 kB [emitted] static/img/timg.gif 36.7 kB [emitted] Static/js/bootstrap-4.0.0-beta2.min.js 50.6 kB [emitted] static/js/Chart.min.js 160 kB [emitted] static/js/jquery-3.2.1.slim.min.js 69.6 kB [emitted] static/js/popper-1.12.9.min.js 19.2 kB [emitted] static/sdk/sdk.js 54 bytes [emitted] static/js / Chart.js 404 kB [emitted] [big] Build complete. Tip: built files are meant to be served over an HTTP server. Opening index.html over file:// won't work.
At this point, a new dist subdirectory will be generated under the front-end directory of the ontology-explorer project
Blockchain@ThinkPad-T460:~/GitClone/ontology-explorer/front-end$ ls-lt dist/total 8drwxrwxr-x 7 blockchain blockchain 4096 May 23 21:02 static-rw-rw-r-- 1 blockchain blockchain 1359 May 23 21:02 index.htmlblockchain@ThinkPad-T460:~/GitClone/ontology-explorer/front-end$
Copy the index.html file and the static folder under the newly generated dist directory to the root directory of Nginx
Open the default profile for Nginx
Blockchain@ThinkPad-T460:~$ sudo vim / etc/nginx/sites-available/default
The contents are as follows
# Default server configuration#server {listen 80 default_server; listen [::]: 80 default_server; # SSL configuration# # listen 443 ssl default_server; # listen [::]: 443 ssl default_server; # # Note: You should disable gzip for SSL traffic. # See: https://bugs.debian.org/773332 Read up on ssl_ciphers to ensure a secure configuration. # See: https://bugs.debian.org/765782 Self signed certs generated by the ssl-cert package # Don't use them in a production server! # # include snippets/snakeoil.conf; root / var/www/html; # Add index.php to the list if you are using PHP index index.html index.htm index.nginx-debian.html; # server_name localhost; server_name _ Location / {# First attempt to serve request as file, then # as directory, then fall back to displaying a 404. Try_files $uri $uri/ = 404;} # pass PHP scripts to FastCGI server # # location ~\. Php$ {# include snippets/fastcgi-php.conf; # With php-fpm (or other unix sockets): # fastcgi_pass unix:/var/run/php/php7.0-fpm.sock # # With php-cgi (or other tcp sockets): # fastcgi_pass 127.0.0.1 fastcgi_pass 9000; #} # deny access to .htaccess files, if Apache's document root # concurs with nginx's one # # location ~ /\ .ht {# deny all; #}}
In the author's environment, the default root directory for Nginx is / var/www/html.
Blockchain@ThinkPad-T460:~/GitClone/ontology-explorer/front-end$ sudo cp dist/index.html / var/www/html/ [sudo] password for blockchain: blockchain@ThinkPad-T460:~/GitClone/ontology-explorer/front-end$ sudo cp-r dist/static/ / var/www/html/blockchain@ThinkPad-T460:~/GitClone/ontology-explorer/front-end$
At this point, the Ontology blockchain explorer front-end configuration is complete.
Run the whole project
Start the deployed ONT single node
Blockchain@ThinkPad-T460:~/node2 $. / ontology 2018-05-23 2200 GID 33.675726 [TRACE] GID 1, main () main.go:76 Node version: v0.6-98-g521b2018/05/23 2200 blockchain@ThinkPad-T460:~/node2 33.675939 [INFO] GID 1,0. Open the accountPassword:2018/05/23 22:00:38.904321 [INFO] GID 1, 1. Loading the Ledger2018/05/23 22:00:39.359335 [INFO] GID 1, InitCurrentBlock currentBlockHash a199831b9bf5ec7ef7c5b2909401d09cceca6046dfbd3f37abb65aecf4fd5dfb currentBlockHeight 136372018/05/23 22:00:39.435820 [INFO] GID 1, 3. Start the transaction pool server2018/05/23 22:00:39.437324 [INFO] GID 67, txpool-verify actor: started and be ready to receive validator's msg2018/05/23 22:00:39.437460 [INFO] GID 68 Txpool actor started and be ready to receive txPool msg2018/05/23 22:00:39.437526 [INFO] GID 69, txpool-tx actor started and be ready to receive tx msg2018/05/23 22:00:39.437691 [INFO] GID 70, stateless-validator: started and be ready to receive txn2018/05/23 22:00:39.438545 [INFO] GID 1, 4. Start the P2P networks2018/05/23 22:00:39.438643 [INFO] GID 72 Statefull-validator: started and be ready to receive txn2018/05/23 22:00:39.438740 [INFO] GID 1, Init node ID to 0xab5b89d2770202122018/05/23 22:00:39.439018 [WARN] GID 77, p2p actor started2018/05/23 22:00:39.440084 [INFO] GID 1, WaitForSyncBlkFinish... Current block height is 13637, current header height is 136372018 GID 05, Start Consensus Services2018/05/23 2200 GID 39.440124 [INFO] GID 1, 5. Start the RPC interface2018/05/23 2200 GID 88-440794 [INFO] GID 88 Incr validator block height 4294967295! = ledger block height 136372018 GID 05 ledger block height 23 2200 incr validator block height 45.440971 [INFO] GID 88, current block Height 13637, incrValidateHeight 136372018 incrValidateHeight 23 2200 GID 88, solo actor receives block complete event. Block height= 136382018Accord05Accorde 23 22VOV 00VANG 50.443933 [INFO] GID 59, BlockHeight = 13638
Start the back-end process
Blockchain@ThinkPad-T460:~/GitClone/ontology-explorer/back-end$ java-jar target/explorer-1.0.0-SNAPSHOT.jar. _ _ / / _ _ _ (() _ _ _ |'_ _ _ | |\ / _ _ _ | | | (_ _ | |) )'| _ |. _ _ | _ | | _ | _ | | _\ _ _ | | / = | _ | = | _ _ / = /: Spring Boot:: (v1.5.9.RELEASE) [INFO] [2018-05-23 22:05:58] com.github.ontio.ExplorerApplication [48]-Starting ExplorerApplication v1.0.0-SNAPSHOT on ThinkPad-T460 with PID 4982 (/ home/blockchain/GitClone/ontology-explorer/back-end/target/explorer-1.0.0-SNAPSHOT.jar started by blockchain in) | / home/blockchain/GitClone/ontology-explorer/back-end) [INFO] [2018-05-23 22:05:58] com.github.ontio.ExplorerApplication [597]-The following profiles are active: uat [INFO] [2018-05-23 22:05:59] org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext [583]-Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@3d71d552: startup date [Wed May 23 22:05:59 CST 2018] Root of context hierarchy [INFO] [2018-05-23 22:06:01] org.hibernate.validator.internal.util.Version [30]-HV000001: Hibernate Validator 5.3.6.Final
Open http://localhost/
Similar to the https://explorer.ont.io/ interface.
Thank you for reading this article carefully. I hope the article "how to install Ontology Block chain browser Development under Ubuntu 14.04" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!