-
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);
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 file index.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);
service nginx start | |
service php5-fpm start | |
cp /hosts /etc/hosts | |
export TERM=xterm | |
mongod --fork --logpath /var/log/mongodb.log |
// Config RSA
$config = array(
"digest_alg" => "sha512",
"private_key_bits" => 2048,
"private_key_type" => OPENSSL_KEYTYPE_RSA,
);
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)
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