linux常用命令(不断补充中)

which nslookup

yum  provides  */nslookup

yum install -y bind-utils 

 

route [-n]

ip route show

nslookup www.baidu.com

dig www.baidu.com

netstat -[rn]

 

scp -P 7168 11.gz [email protected]:/data/www/webapps/ 将11.gz拷贝到0.2下

-----------------------------------------------------------------------------------------

最近用git下载一个开源项目的时候,出现了这样的错误信息:

SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed while accessing https://github.com/... 
出现这样的情况是因为git clone默认采用SSL认证的时候,本地找不到对应证书,所以可以通过关掉验证来解决这一问题,就是在git clone命令前面加上:

 

env GIT_SSL_NO_VERIFY=true       
所以完整的命令是这样:

 

env GIT_SSL_NO_VERIFY=true git clone https://github.com/...
 
wget -c -O out.zip "http://blog.is36.com/abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz.abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz.zip"
把下载的文件输出为一个固定的文件名,比如:out.zip
mysql授权:grant all privileges on mb_pay.*  to root@'10.140.35.251' identified by '12345665';
 登录远程mysql:mysql -h remorte_ip -u admin -p

猜你喜欢

转载自yaweidai.iteye.com/blog/2169815
今日推荐