Daily learning -20,190,721

  1. npm switching mirror Taobao
npm install -g cnpm --registry=https://registry.npm.taobao.org
之后就可以再项目中使用
cnpm install
安装所需要的依赖包
  1. vim settings tab is four spaces
    One is the global setting, the other is for the user to set
vim /etc/vimrc
or 
vim ~/.vimrc
在打开的文件中添加
set tabstop=4
set softtabstop=4
set shiftwidth=4
set noexpandtab

Reference: https://www.linuxidc.com/Linux/2015-08/121703.htm

  1. When you open in vim, suggesting a read-only file, then we find that the content has been changed, want to save changes, you can use the following command:
w !sudo tee %

http://blog.chinaunix.net/uid-21843387-id-105990.html

  1. After building laravel environment lnmp, the custom route can not be displayed, suggesting that 404 error, then nginx need to change the configuration of the website, add in the configuration file:
location / {
try_files $uri $uri/ /index.php?$query_string;
}

Guess you like

Origin www.cnblogs.com/AlexanderZhao/p/11223221.html