Skip to content

Tuong NOte!

note...............................................................................note

Tuong NOte!

note...............................................................................note

  • Home
  • Javascript
    • Node js
    • React Js
  • Linux
  • Mongo
  • docker
  • Bootstrap
  • Design Pattern
  • Git
    • Home
    • Linux
Linux

How to enable SSH password authentication

tuongazby Dec 28, 2022 0 Comments

Chỉnh sửa file bằng quyền sudo sudo nano /etc/ssh/sshd_config Tìm đến dòng PasswordAuthentication no Và đổi nó thành PasswordAuthentication yes Lưu file này lại Sau đó tiến hành khởi động…

Git Linux

Cập nhật Git lên 2.x trên Centos 7

tuongazby Dec 27, 2022 0 Comments

Kiểm tra phiên bản Git git --version //git version 1.8.3.1 Xóa phien bản Git hiện tại sudo yum -y remove git sudo yum -y remove git-* Thêm End Point CentOS…

Linux

Lệnh linux cơ bản

tuongazby Dec 12, 2022 0 Comments

Đổi mật khẩu sudo passwd root Xem thông tin cpu lscpu Di chuyển thư mục mv folder_name folder_dir Tải file từ server qua ssh scp your_username@host:foobar.txt /local/dir Zip folder sudo…

Linux Node js

How to create folder if it doesn’t exist use NodeJS

tuongazby Nov 23, 2022 0 Comments

Đối với 1 thư mục riêng lẻ: var fs = require('fs'); var dir = './tmp'; if (!fs.existsSync(dir)){ fs.mkdirSync(dir); } Đối với 1 cây thư mục: var fs = require('fs'); var…

Linux Node js

How to move file in Nodejs

tuongazby Nov 23, 2022 0 Comments

var fs = require('fs') var oldPath = 'old/path/file.txt' var newPath = 'new/path/file.txt' fs.rename(oldPath, newPath, function (err) { if (err) throw err console.log('Successfully renamed - AKA moved!') })

Linux

Các lệnh cơ bản trong Redis

tuongazby Nov 15, 2022 0 Comments

List lệnh redis & test Redis: https://redis.io/commands/ Redis Key Redis key là các lệnh sử dụng để quản lý các key trong redis. Với cú pháp như sau: COMMAND KEY_NAME…

Linux Mongo

Cài đặt mongodb trên Ubuntu

tuongazby Nov 14, 2022 0 Comments

Ubuntu 18.04 and MongoDB 4.2 First, remove MongoDB from previous if installed: sudo apt remove --autoremove mongodb-org Remove any mongodb repo list files: sudo rm /etc/apt/sources.list.d/mongodb*.list sudo apt update Now,…

Linux

Cài đặt Redis trên Linux

tuongazby Aug 30, 2022 0 Comments

Cài đặt Redis Cài đặt gói EPEL: sudo yum install epel-release Cài đặt Redis: sudo yum install redis -y Start Redis service: sudo systemctl start redis.service Bật Redis mỗi khi…

Linux

Thiết lập hệ thống chạy SELinux

tuongazby Aug 30, 2022 0 Comments

Xem trạng thái sestatus Chỉnh sửa trạng thái SELinux nano /etc/sysconfig/selinux

Recent Posts

  • Svelte #7: Stores
  • Svelte #6: Lifecycle
  • Svelte #5: Bindings
  • Svelte #4: DOM Event
  • Svelte #3: Sử dụng logic

Recent Comments

  1. tr on Protected: Note Pro
  2. A WordPress Commenter on Hello world!

Tuong NOte!

note…………………………………………………………………….note

Copyright © All rights reserved | Blogus by Themeansar.