apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
apt-get install software-properties-common
apt-add-repository 'deb https://apt.dockerproject.org/repo ubuntu-xenial main'
apt-get update
apt-cache policy docker-engine
systemctl status docker
apt-get install docker-engine
Macbook-2:~ mac$ cd .ssh
Macbook-2:.ssh mac$ ls
id_rsa id_rsa.pub known_hosts
Macbook-2:.ssh mac$ scp id_rsa.pub [email protected]:./id_rsa.pub
[email protected]'s password:
id_rsa.pub 100% 406 6.6KB/s 00:00
Macbook-2:.ssh mac$ ssh [email protected]
[email protected]'s password:
Welcome to Ubuntu 16.04.1 LTS (GNU/Linux 4.9.7-x86_64-linode80 x86_64)
- Tạo cặp khóa Publickey và Private key
// Config RSA
$config = array(
"digest_alg" => "sha512",
"private_key_bits" => 2048,
"private_key_type" => OPENSSL_KEYTYPE_RSA,
);
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
service nginx start | |
service php5-fpm start | |
cp /hosts /etc/hosts | |
export TERM=xterm | |
mongod --fork --logpath /var/log/mongodb.log |
-
Nếu bị lỗi 404: Sai đường dẫn
-
500 : Code PHP bị sai lúc này bật log lên xem
-
Sử dụng
die('abcd');
trong fileindex.php
-
Sử dụng hàm hiển thị lỗi trong
index.php
:
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
- Chỉnh sửa file /etc/hosts ngoài máy thật
127.0.0.1 bigseo.dev
- Thêm 1 file nginx config mới
/etc/nginx/conf.d
với tên filebigseo.dev.conf
nội dung:
Thay đổi:
Xem hướng dẫn tại: https://docs.docker.com/engine/installation/linux/ubuntulinux/
- Start docker
FOR | ACTION | SEND |
---|---|---|
⌘← | "HEX CODE" | 0x01 |
⌘→ | "HEX CODE" | 0x05 |
⌥← | "SEND ESC SEQ" | b |
⌥→ | "SEND ESC SEQ" | f |
NewerOlder