Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794
{"id":2705,"date":"2019-12-11T00:26:11","date_gmt":"2019-12-11T00:26:11","guid":{"rendered":"https:\/\/support.aklwebhost.com\/?post_type=manual_kb&p=2705"},"modified":"2019-12-11T00:31:57","modified_gmt":"2019-12-11T00:31:57","slug":"installing-jxcore","status":"publish","type":"manual_kb","link":"https:\/\/support.aklwebhost.com\/knowledgebase\/installing-jxcore\/","title":{"rendered":"Installing JXCore"},"content":{"rendered":"

JXCore is a fork of Node.js that introduces better performance and multi-threading. Despite it being in beta, JXCore is fast and stable enough for many applications to be used. It can also bring additional features, functions, and an encrypted package system to help protect your code from preying eyes. In the future, JXCore could possibly bring LLVM into the mix as a replacement for the Google Chrome V8 Engine. This tutorial will show you how to install JXCore onto your linux server. We cover both Ubuntu, CentOS, and possibly any custom OS installed with the AKLWEB HOST “Custom ISO” feature.<\/p>\n

Warning<\/h2>\n

JXCore is still in beta, and many applications may not be compatible, like they would be with standalone Node.js. If you come across any issues, please report them\u00a0here<\/a>. Any issues reported can surely help increase the stability of JXCore.<\/p>\n

Update Server<\/h3>\n

Run the following command to make sure your server is fully up to date, and to have one essential tool installed.<\/p>\n

CentOS:<\/p>\n

yum update\r\nyum install unzip\r\n<\/code><\/pre>\n

Ubuntu\/Debian:<\/p>\n

apt-get update\r\napt-get dist-upgrade\r\napt-get install unzip\r\n<\/code><\/pre>\n

Install JXCore<\/h3>\n

Automatically<\/h4>\n

The JXCore Team has provided a simple script for anyone to use which installs JXCore onto their system. It has been tested and works perfectly for Ubuntu, Debian, CentOS 7, and FreeBSD. To install JXCore, run the following command:<\/p>\n

curl http:\/\/jxcore.com\/xi.sh | bash\r\n<\/code><\/pre>\n

If you did not get an error, then you may proceed to the next step.<\/p>\n

Manually<\/h4>\n

If for some reason the script doesn’t work, or you wish to install it manually, then you will have to first download JXCore for your system. Please note this tutorial assumes 64-bit. If you are using 32-bit, you may need to check and make sure there is one available for your architecture and replace\u00a064<\/code>\u00a0with\u00a032<\/code>.<\/p>\n

Ubuntu:<\/p>\n

wget https:\/\/s3.amazonaws.com\/nodejx\/jx_ub64.zip\r\n<\/code><\/pre>\n

Debian:<\/p>\n

wget https:\/\/s3.amazonaws.com\/nodejx\/jx_deb64.zip\r\n<\/code><\/pre>\n

CentOS:<\/p>\n

wget https:\/\/s3.amazonaws.com\/nodejx\/jx_rh64.zip\r\n<\/code><\/pre>\n

You will now want to extract the file that you have downloaded and move the\u00a0jx<\/code>\u00a0executable file to\u00a0\/usr\/local\/bin<\/code>. Depending on which file you downloaded, replace\u00a0XX<\/code>\u00a0with\u00a0ub<\/code>\u00a0for Ubuntu,\u00a0deb<\/code>\u00a0for Debian,\u00a0rh<\/code>\u00a0for CentOS.<\/p>\n

unzip jx_XX64.zip\r\ncd jx_XX64\r\nmv jx \/usr\/local\/bin\r\n<\/code><\/pre>\n

If you decide to move the\u00a0jx<\/code>\u00a0binary to a different location, then please make sure to create a link to\u00a0\/usr\/local\/bin<\/code>, or add your own path to the\u00a0PATH<\/code>\u00a0variable on your system.<\/p>\n

Verify Installation<\/h3>\n

To verify a successful installation, run the following command:<\/p>\n

jx -e \"console.log('Hello World!');\"\r\n<\/code><\/pre>\n

If you see\u00a0Hello World!<\/code>, then JXCore has been successfully installed. If you wish to test the server usage, create a file called\u00a0server.js<\/code>\u00a0and populate it with the following:<\/p>\n

var http = require('http');\r\nhttp.createServer(function (req, res) {\r\n  res.writeHead(200, {'Content-Type': 'text\/plain'});\r\n  res.end('Hello World\\n');\r\n}).listen(1337);\r\nconsole.log('Server running on port 1337');\r\n<\/code><\/pre>\n

Once done, save the file and run\u00a0jx server.js<\/code>. Next, in your web browser, navigate to\u00a0http:\/\/0.0.0.0:1337<\/code>\u00a0(replace the IP accordingly) and you will see\u00a0Hello world<\/code>.<\/p>\n

If you wish to take advantage of one JXCore’s multi-threaded feature, run the following:<\/p>\n

jx mt-keep:2 server.js \r\n<\/code><\/pre>\n

This will spawn two processes on your server, which take advantage of 2 virtual CPUs. Note that if your server only has one CPU, then using the multi-threaded feature will not be beneficial. On the other hand, if your server has more than 2 virtual CPUs, you can increase the value of 2 to match the virtual CPU count.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","manualknowledgebasecat":[106,242],"manual_kb_tag":[403],"_links":{"self":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2705"}],"collection":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb"}],"about":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/types\/manual_kb"}],"author":[{"embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/comments?post=2705"}],"version-history":[{"count":2,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2705\/revisions"}],"predecessor-version":[{"id":2717,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2705\/revisions\/2717"}],"wp:attachment":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/media?parent=2705"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manualknowledgebasecat?post=2705"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb_tag?post=2705"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}