Centos7系统rc.local不起作用
chmod +x /etc/rc.d/rc.local
开头加 #!/bin/bash
启动此项服务:
systemctl list-units –type=service #来查看一下所有的开启启动项目里面有没有这个rc-local这个服务。
systemctl status rc-local.service #来查看一下当前是怎么个状态
systemctl enable rc-local.service
systemctl start rc-local.service
使用gcc时,总是按中文提示。回归英文的提示,方法是: 首先使用env查看,发现LANGUAGE=zh_CN.UTF-8,接着执行export LANG=en_US.UTF-8就可以,以后的编译是就按英文来提示
1 2 |
|
英文:E437: terminal capability “cm” required
中文:e437 终端需要能力 cm
这个错误一般是环境变量TERM没有配置或者配置错误所致, 用 export TERM=linux 或者 export TERM=xterm
上传是用rz -be,并且去掉弹出的对话框中“Upload files as ASCII”前的勾选。 -a, –ascii -b, –binary 用binary的方式上传下载,不解释字符为ascii -e, –escape 强制escape 所有控制字符,比如Ctrl+x,DEL等
nginx
http://nginx.org/packages/rhel/7/x86_64/RPMS/
binkernel.spec
1 2 3 4 5 6 7 8 9 10 11 12 |
|
更改 bash_history 默认历史记录
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
|
关闭CentOS6启动进度条,显示详细自检信息。vim /boot/grub/grub.conf,将"rhgb"和 “quiet"去掉,保存即可
vmware虚拟机mkinitrd提示no module ehci-hcd 错误的话,加:
1
|
|
CentOS6.0 下默认开selinux时出现httpd 报“SELinux policy enabled; httpd running as context unconfined_u:system”的解决方案
1 2 3 4 5 |
|
CentOS 关闭防火墙
1) 永久性生效,重启后不会复原
开启:
1 2 |
|
关闭:
1 2 |
|
2) 即时生效,重启后复原
开启:
1 2 |
|
关闭:
1 2 |
|
CentOS安装软件:/lib/ld-linux.so.2: bad ELF interpreter 解决
是因为64位系统中安装了32位程序, 解决方法:
1
|
|
其他包
1
|
|
gcc, c++
1 2 3 4 |
|