You want to integrate your Android app with Facebook Android SDK, Google Play Services or Firebase. With Facebook, you need to config key hash. You can use Facebook manual to get your own key hash or read my blog.
How to download Android Keytool?
Go to Android Keytool’s GitHub repo. Select release tab and download latest .jar file. After download tool, you can open and start using tool. See video demo here. So easy!
Bình thường chúng ta sinh ra SSH key bằng lệnh ssh-keygen thì sẽ không gặp lỗi như bên dưới @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Permissions 0755 for '/Users/quydo/.ssh/github_rsa' are too open. It is required that your private key files are NOT accessible by others. This private key will be ignored. Load key "/Users/quydo/.ssh/github_rsa": bad permissions git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. Lỗi này là do ssh-agent kiểm tra thấy permission của file key đang là 0755, user khác có thể đọc và execute file key. Để khác phục thì ta cần đổi lại permission của file key dùng lệnh chmod chmod 0600 /Users/quydo/.ssh/github_rsa Sau đó ta có thể connect dùng SSH key bình thường. Edited: lỗi này sẽ...
Nếu bạn đang configure port cho SSH, sau đó restart lại sshd mà gặp báo lỗi kiểu như thế này Job for ssh.service failed because the control process exited with error code. See "systemctl status ssh.service" and "journalctl -xe" for details. Thì hãy chạy lệnh journalctl -xe để xem báo lỗi cụ thể là gì nhé. Giả sử ta đang configure port number là 9999, lúc này báo lỗi sẽ có dạng Dec 04 22:25:16 localhost sshd[25003]: error: Bind to port 9999 on 0.0.0.0 failed: Permission denied. Dec 04 22:25:16 localhost sshd[25003]: error: Bind to port 9999 on :: failed: Permission denied. Dec 04 22:25:16 localhost sshd[25003]: fatal: Cannot bind any address. Dec 04 22:25:16 localhost systemd[1]: sshd.service: main process exited, code=exited, status=255/n/a Dec 04 22:25:16 localhost systemd[1]: Failed to start OpenSSH server daemon. -- Subject: Unit sshd.service has failed -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -...
Khi cài đặt PHP trên CentOS 7/RHEL 7 sẽ mặc định cài PHP 5.4. Nếu muốn cài đặt PHP 7.2 thì cần làm theo các bước bên dưới 1. Cài đặt EPEL repo sudo yum install -y epel-release 2. Cài đặt Remi repo cho PHP sudo yum install -y http://rpms.remirepo.net/enterprise/remi-release-7.rpm 3. Cài đặt package yum-utils sudo yum install -y yum-utils 4. Enable Remi repo sudo yum-config-manager --enable remi-php72 5. Chạy yum update sudo yum -y update 6. Cài đặt PHP 7.2 và các package thường xuyên sử dụng (có thể thêm / bớt tùy ý) sudo yum install -y php72 php72-php-fpm php72-php-gd php72-php-json php72-php-mbstring php72-php-mysqlnd php72-php-xml php72-php-xmlrpc php72-php-opcache php-cli 7. Kiểm tra phiên bản của PHP sau khi cài đặt php -v Cửa sổ dòng lệnh hiển thị như bên dưới là cài đặt thành công PHP 7.2.34 (cli) (built: Aug 25 2021 15:37:58) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies Bên dưới là tất cả các lện...
Nhận xét
Đăng nhận xét