@JS's Notes

Site with notes from my work.

How to install Memcached caching server on CentOS 7

2019-10-08 System @JS

My test platform: CentOS Linux release 7.6.1810 (Core)

Memcached is an open source distributed memory object caching program that allows improve and speed up the performance of dynamic web applications by caching data and objects in memory. Memcached is also used to cache entire database tables and queries to improve the performance.

Continue reading

Redmine on CentOS 7

2019-10-08 System @JS

My test platform: CentOS Linux release 7.6.1810 (Core)

Requirements: user with root privileges or non-root user with sudo privileges.

Java installation:
$ sudo yum install java-1.8.0-openjdk-devel -y
$ java -version
openjdk version "1.8.0_212"
OpenJDK Runtime Environment (build 1.8.0_212-b04)
OpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode)
Continue reading

How to optimize your site using Gzip compression on the Nginx server

2019-10-05 System SEO @JS

My test platform: CentOS Linux release 7.6.1810 (Core)

Requirements: user with root privileges or non-root user with sudo privileges.

Edit the configuration file /etc/nginx/nginx.conf and add as shown below:

server {
    [...]
    gzip on;
    gzip_vary on;
    gzip_min_length 10240;
    gzip_proxied expired no-cache no-store private auth;
    gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/xml;
    gzip_disable "MSIE [1-6]\.";
    ...
}
Continue reading

Angular CLI on Ubuntu 18.10

2019-10-05 System Programing @JS

Requirements: user with root privileges or non-root user with sudo privileges.

$ sudo curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
$ sudo apt install nodejs build-essential -y
$ node -v
$ npm -v
$ sudo npm install -g @angular/cli
$ ng --version
     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/

Angular CLI: 8.1.2
Node: 12.7.0
OS: linux x64
Angular:
[...]

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.801.2
@angular-devkit/core         8.1.2
@angular-devkit/schematics   8.1.2
@schematics/angular          8.1.2
@schematics/update           0.801.2
rxjs                         6.4.0
Continue reading

Installing node.js in Linux

2019-10-05 System Programing @JS

Requirements: user with root privileges or non-root user with sudo privileges.

# Ubuntu/Debian
$ sudo curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
$ sudo curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash -
$ sudo curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
$ sudo apt install nodejs -y

# Centos/Fedora/RHEL
$ sudo curl -sL https://rpm.nodesource.com/setup_12.x | bash -
$ sudo curl -sL https://rpm.nodesource.com/setup_11.x | bash -
$ sudo curl -sL https://rpm.nodesource.com/setup_10.x | bash -
# Centos
$ sudo yum install nodejs -y
# Fedora/RHEL
$ sudo dnf -y install nodejs
Older posts Newer posts