Chạy ứng dụng Nodejs sử dụng PM2

 Uncategorized  Comments Off on Chạy ứng dụng Nodejs sử dụng PM2
Feb 172020
 

Khởi động app$ pm2 start app.js Load Balance 4 instances of api.js: $ pm2 start api.js -i 4 Monitor in production: $ pm2 monitor Make pm2 auto-boot at server restart: $ pm2 startup

Install Elasticsearch, Logstash, and Kibana (ELK Stack) on CentOS/RHEL 7

 Uncategorized  Comments Off on Install Elasticsearch, Logstash, and Kibana (ELK Stack) on CentOS/RHEL 7
May 052018
 

rpm –import https://artifacts.elastic.co/GPG-KEY-elasticsearch /etc/yum.repos.d/elasticsearch.repo [elasticsearch-6.x] name=Elasticsearch repository for 6.x packages baseurl=https://artifacts.elastic.co/packages/6.x/yum gpgcheck=1 gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch enabled=1 autorefresh=1 type=rpm-md yum install elasticsearch config curl -X GET http://localhost:9200 Logstash rpm –import https://artifacts.elastic.co/GPG-KEY-elasticsearch cat << EOF > /etc/yum.repos.d/logstash.repo [logstash-6.x] name=Elastic repository for 6.x packages baseurl=https://artifacts.elastic.co/packages/6.x/yum gpgcheck=1 gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch enabled=1 autorefresh=1 type=rpm-md EOF yum install logstash Install Kibana  rpm –import https://artifacts.elastic.co/GPG-KEY-elasticsearch cat […]

What is a SysAdmin?

 Uncategorized  Comments Off on What is a SysAdmin?
Sep 222014
 

From: http://sysadminday.com/about-sysadmin-day/sysadwhat/ So what the heck is a SysAdmin? System administrators. IT pros. The IT guy (or IT gal). Techies. They go by a lot of names, but they all pretty much share a common goal: be the fantastic fixers of all things tech. After all, if weren’t for sysadmins, making copies would require a […]

Change hostname on CentOS 7

 Uncategorized  Comments Off on Change hostname on CentOS 7
Sep 222014
 
Change hostname on CentOS 7

After installing the CentOS 7 on my server, i tried to change host name by modifying the /etc/sysconfig/network; it did not take an effect of the modification. Even after multiple reboot of server, the host name remains localhost.localdomain. The procedure to change the host name in CentOS 7 is now totally different from the previous version, this […]