Install PM2 Now we will install PM2, which is a process manager for Node.js applications. PM2 provides an easy way to manage and daemonize applications (run them as a service). We will use Node Packaged Modules (NPM), which is basically a package manager for Node modules that installs with Node.js, to install PM2 on our app server…
Read moreCài đặt Certbot Cách dễ dàng để cài đặt chứng chỉ Let’s Encrypt trên VPS là sử dụng Certbot Client. Trên CentOS 7, Certbot có sẵn ở EPEL Repository. Bạn chỉ cần enable lên với câu lệnh sau: 1 rpm –ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm Ubuntu bạn cần cấu hình Certbot PPA với câu lệnh sau: 1 2 3..
Read moreGuide này nhằm giúp các System Admin nhận ra được rằng mình “misconfiguration” ở đâu khiến hệ thống bị lộ real IP khiến các kẻ tấn công DDoS dễ dàng tấn công hệ thống mà bỏ qua các lớp CDN bảo vệ. Đầu tiên ta cần phải biết danh sách IP của cloudflare (CloudFlare IP)..
Read moreDatabase Connections In Magento By default, Magento will automatically connect to it’s database and provide two separate resources which you can use to access data: core_read and core_write. As you can probably guess, core_read is for reading from the database while core_write is for writing to the database. It is important to ensure that you..
Read moreI recently had to transfer the inventory of an old Shop Factory site into Magento 1.7. Magento offers a powerful facility to do this via CSV using its DataFlow profiles but this is not without its quirks and pitfalls so I thought I’d share my experiences. Importing product data First, you will need to know..
Read moreHere is a step by step guide to make your first chatbot. Widely anticipated, Facebook has announced their messenger platform enabling businesses to build their own chat bots — automated response tools within Messenger which will be able to handle increasingly complex customer queries. Official Facebook Getting started guide https://developers.facebook.com/docs/messenger-platform/quickstart for Messenger Platform https://developers.facebook.com/products/messenger/ only have examples for..
Read moreDeclare @SQLQuerry nvarchar(255) Declare @dbname nvarchar(255) Declare @CrsrVar Cursor Set @CrsrVar = Cursor For SELECT name FROM sys.databases where name not in (‘tempdb’,’distribution’,’master’,’model’,’msdb’,’ReportServer’,’ReportServerTempDB’) Open @CrsrVar Fetch Next From @CrsrVar into @dbname While(@@FETCH_STATUS = 0) Begin — Truncate the log by changing the database recovery model to SIMPLE. SET @SQLQuerry = ‘USE [‘ +@dbname +’];ALTER DATABASE..
Read moreConfigServer Security & Firewall (hay CSF) là một firewall rất phổ biến và hiệu quả được sử dụng trên các server Linux hiện nay. Bên cạnh những tính năng cơ bản như một firewall, CSF còn có những chức năng bảo mật nâng cao khác như ngăn chặn flood login, port scans, SYN floods… Chi tiết..
Read moreTại sao mình lại chọn WooCommerce? WooCommerce là một plugin khá phổ biến để tạo trang bán hàng trong WordPress. Có nhiều themes dành riêng cho nó được WooThemes thiết kế, bao gồm miễn phí và trả phí. Có nhiều thành phần mở rộng (add-on) giúp tăng cao hiệu suất sử dụng. Đầy đủ các..
Read moreAnatomy of a Slow Download (cốt lõi của việc download chậm) Tình huống: cả mạng download rất chậm Tiến hành : đặt wireshark lắng nghe toàn bộ đầu ra của mạng Phân thích : hình ảnh dưới đây cho thấy có rất nhiều kết nối TCP,HTTP điều này có nghĩa là có..
Read more
[WP] W3 Total Cache settings with Cloudflare GUIDE
W3 Total cache is a WordPress Performance Optimization framework that is designed to improve user experience and page speed. It is recommended by many web hosting providers, and used by countless major websites such as mashable.com as well as many others. W3TC improves the user experience of your site by increasing web server performance by reducing..
Read more