1、linux 挂载window共享目录命令:
mount -o username=用户名,password=密码 //Windows主机IP/共享目录 /挂载linux上的目录
//IP地址为windows主机的地址,用户名(域名\用户名)和密码为Windows的
mount -t cifs -o username="xxx\xxxxx" //192.168.121.33/share /mnt/share
注意挂载的cifs文件系统是不区分大小写的。
2、如何查看头文件的搜索路径 加上gcc的-v参数
3、makefile中如何打印变量值
(1)输出打印信息的方法是:$(warning xxxxx),$(error xxxxx)
(2)输出打印变量值的方法是:$(warning $(XXX))
4、redhat6 关闭防火墙
(1)永久关闭 chkconfig iptables off
(2)临时关闭 service iptables stop(/etc/init.d/iptables stop)
5、redhat 关闭selinux
(1)临时关闭 setenforce 0 //设置SELinux 成为permissive模式
(2)彻底禁用selinux:使用root用户,vim/etc/sysconfig/selinux,将SELINUX=enforcing修改成SELINUX=disabled。重启后才能生效。