【160226】服务器管理记录
Test nginx.conf
/usr/sbin/nginx -t
Duplicate a MySQL database with its tables
mysqldump [existing database] -u root -p’[password]’ –add-drop-table | mysql [new database] -u root -p’[password]’
Check the direction of MySQL data files
show variables like ‘%dir%’;
Uninstall and reinstall node & npm
sudo apt-get update
sudo apt-get install nodejs
sudo apt-get install npm
【160226】服务器管理记录