This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ln -s /opt/cpanel/ea-nodejs10/bin/npm /usr/local/sbin/npm | |
$ ln -s /opt/cpanel/ea-nodejs10/bin/node /usr/local/sbin/node | |
$ chmod +x /usr/local/sbin/npm | |
$ chmod +x /usr/local/sbin/node |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cd ~ | |
## Update gcc compiler | |
$ sudo yum install centos-release-scl | |
$ sudo yum install devtoolset-8 | |
$ scl enable devtoolset-8 bash | |
## Get latest stable gRPC repo | |
$ git clone -b v1.23.0 https://github.com/grpc/grpc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[opcache] | |
; Determines if Zend OPCache is enabled | |
opcache.enable=1 | |
; Determines if Zend OPCache is enabled for the CLI version of PHP | |
;opcache.enable_cli=1 | |
; The OPcache shared memory storage size. | |
opcache.memory_consumption=512 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Check if nodesources need removing | |
rpm -qa 'node|npm' | |
## Remove nodejs installed via yum | |
yum remove nodesource-release* nodejs | |
yum clean all | |
## Install node.js using compiled binaries | |
cd ~ | |
wget https://nodejs.org/dist/v14.9.0/node-v14.9.0-linux-x64.tar.xz |