Cài đặt Mongodb 3.6 trên CentOS 7, PHP 7.1, Nginx

https://docs.mongodb.com/getting-started/shell/tutorial/install-mongodb-on-red-hat/ Bước 1: Tạo file /etc/yum.repos.d/mongodb-org-3.6.repo Với nội dung [mongodb-org-3.6] name=MongoDB Repository baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.6/x86_64/ gpgcheck=1 enabled=1 gpgkey=https://www.mongodb.org/static/pgp/server-3.6.asc Bước 2. Chạy lệnh sau để cài đặt MongoDB sudo yum install -y mongodb-org Bước 3: Chạy từng lệnh bên dưới. (và trước khi chạy nhớ bỏ các Disable Functions của PHP.INI bỏ các shell_exec hoặc tương tự, để …

Chia sẻ từ Andy Nghiêm Túc

Bài viết nhằm mục đích lưu trữ Leech từ forum qua, Của Anh Andy Nghiêm Túc. Link gốc http://cafemmo.club/threads/autoweb-va-toi.564/ Mình sẽ viết 1 seri về autoweb, tổng hợp lại quá trình gần 10 năm theo đuổi nghiệp này. Bài viết này chủ yếu là định hướng, giúp các bạn có cái nhìn rõ hơn về …

Xem dung lượng thư mục và file lớn nhất trong Linux bằng lệnh

Nếu bạn đang quản 1 VPS hay Server chạy hệ điều hành Linux, một ngày nào đó site bỗng dưng đứng hình không rõ nguyên nhân. Vào SSH kiểm tra dung lượng ổ đĩa bằng lệnh df -h phát hiện 1 ổ đĩa nào đó đã sử dụng hết 100% dung lượng. Điều ta cần …

Một số lệnh git căn bản

Set Thông tin mặc định git config --global user.name "ten" git config --global user.email "email@gmail.com"   Tạo mới git clone git@gitlab.com:abccc/link_du_an.git cd thumuc touch README.md git add README.md git commit -m "add README" git push -u origin master   Git dựa trên thư mục, dự án có sẵn, nhưng trên git đang trống Existing folder …

Full-Text Search in MongoDB

MongoDB, one of the leading NoSQL databases, is well known for its fast performance, flexible schema, scalability and great indexing capabilities. At the core of this fast performance lies MongoDB indexes, which support efficient execution of queries by avoiding full-collection scans and hence limiting the number of documents MongoDB searches. Starting from version 2.4, MongoDB …

Tạo user, admin, DB và phân quyền trên Mongo 2.6

Create super user and database user in Mongo 2.6 Nguồn: https://gist.github.com/tamoyal/10441108 # Create your superuser - Tạo nick admin $ mongo > use admin > db.createUser({user:"someadmin",pwd:"secret", roles:[{role:"root",db:"admin"}]}) > exit Cách 1 để đăng nhập vô admin # Alias for convenience (optional and at your own risk) $ echo 'alias mongo="mongo --port 27017 -u someadmin -p …

Cài đặt MongoDB 2.6 trên Centos

Cài đặt MongoDB trên Centos Bài chính thức : https://docs.mongodb.com/v2.6/tutorial/install-mongodb-on-red-hat/ Tạo file /etc/yum.repos.d/mongodb.repo . Nếu bạn sử dụng Centos 64bit thì nội dung file như sau: [mongodb] name=MongoDB Repository baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/ gpgcheck=0 enabled=1 Nếu bạn dùng Centos 32bit thì nội dung là: [mongodb] name=MongoDB Repository baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/i686/ gpgcheck=0 enabled=1 Lưu lại và chạy lệnh sau để cài …

Install macOS 10.12 Sierra Final on VMware on Windows PC – Win 7

This tutorial help you install macOS 10.12 Sierra Final on VMware on Windows PC (Windows 7). This tutorial working with New VMware Player and Workstation Version. Sierra Final on VMware is faster and Siri is Working. Thanks! https://www.youtube.com/watch?v=o43UuseWIWM Latest preview: 10.12 Final (16A323). September 20, 2016 Download Link: Google Drive (One Full): https://goo.gl/3GMxSJ Google Drive …

Must-Have Social Meta Tags, HTML Tags for Twitter, Google+, Facebook and More – 2016

At Moz, we strive to include social media metadata in all new pieces of content that we publish. This allows us to optimize for sharing Twitter, Facebook, Google+ and Pinerest by defining exactly how titles, descriptions, images and more appear in social streams. Think of it as conversion rate optimization for social exposure. The implications …