linux的一些使用
来源:互联网 发布:微信for windows 编辑:程序博客网 时间:2024/06/03 20:55
linux的一些使用
- 检查所有的开机启动项:
chkconfig --list
- 设置开机启动
1. 编辑文件/etc/rc.local 添加需要的开机启动项 eg、/etc/init.d/tengine start #设置tengine开机启动2. 自己添加的shekk脚本 放到 /etc/profile.d/文件夹下,系统启动后会自动执行3. 通过chkconfig命令 启动脚本放到/etc/init.d/ 或者 /etc/rc.d/init.d/下(前者是后者的软链) 然后执行 chkconfig on更多chkconfig的使用、请参考 chkconfig --help
linux下各种配置文件的加载顺序:
“`
通常Linux下的配置文件:
/etc/profile /etc/profile.d/*.sh ~/.bash_profile ~/.bashrc /etc/bashrc
不同场景下的配置文件的加载机制不同,可以分3种情况
1. 正常用户登录进入bash环境:
/etc/profile > /etc/profile.d/*.sh > ~/.bash_profile > ~/.bashrc > /etc/bashrc
使用su切换用户
~/.bashrc > /etc/bashrc > /etc/profile.d/*.sh非登录情况 nologin
~/.bashrc > /etc/bashrc > /etc/profile.d/*.sh
阅读全文
0 0
- linux的一些使用
- Linux的一些使用技巧
- linux一些命令的使用
- 使用Linux的一些问题
- 使用linux的一些经验
- linux--的一些基础使用
- Linux使用的一些技巧
- 使用linux heartbeat 的一些经验
- Linux一些简单的使用技巧
- 关于Linux下一些软件的使用
- 关于一些Linux SVN的安装使用
- linux block传输使用的一些术语
- Linux tar 的一些使用例子
- Linux下的一些功能使用
- Linux的一些资源使用限制
- Linux下一些使用到的命令
- linux中configure一些选项的使用
- linux中configure一些选项的使用
- 运算优先级表
- 对对象的简单操作
- POJ1986Distance Queries(双向带权LCA)
- android 退出activity 的方式总结
- 六大设计原则之里式替换原则
- linux的一些使用
- 可以传中文参数的自定义http协议请求方式
- 流行编程语言的详细对比(5)--异常处理
- 嵌入式开发中对(*(volatile unsigned long *)) 的理解
- 初探GDI——基本框架(文字输出)
- MySQL写压力性能监控与调优
- iptables
- C和指针第三章 笔记
- linux_ubantu系统搭建项目环境(mysql)