密码文件:/etc/shadow,用:分成九段。[root@one~]#cat/etc/shadow
root:$6$sb7qaOyiA7Yjr/7q$0ICMMWbvEAndnX9.IM9su3le4foqlz8DJYUg7SSmLD3nraBfaPZfRbHniKwzzBN4dzJCF5Dm.Q7KJ/v72Ef3z1:16820:0:99999:7:::
bin:*:15980:0:99999:7:::
daemon:*:15980:0:99999:7:::
adm:*:15980..
分类:
其他好文 时间:
2016-03-02 22:15:22
阅读次数:
200
car/etc/passwd查看用户名文件[root@one~]#cat/etc/passwd
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin/etc/passwd有:分割成7个字段,每个字段的含义如下:1:用户名2:用户密码;基于安全原因,密码存放在/e..
分类:
其他好文 时间:
2016-03-02 22:15:08
阅读次数:
119
1、两台服务器各配置两块网卡存储:eth0:192.168.1.20/24eth1:192.168.2.20/24节点:eth0:192.168.1.10/24eth1:192.168.2.10/242、存储服务器配置targert#vim/etc/tgt/targets.conf<targetiqn.2016-02.cn.tedu.tech:sata>backing-store/dev/sdb1initiator-address192.168..
分类:
系统相关 时间:
2016-03-02 20:15:42
阅读次数:
606
我们在安装完mysql之后一定要对其进行调优,如果配置文件没有搞好的话,mysql可能会占用很大一部分内存,同时会使得服务器的性能大大下降,那么我们该如何进行调优,调优的常见选项与方法又是什么呢,我们一起来看看。笔者在这里参考了网上的一篇mysql5.6版本的配置文件/etc/my..
分类:
数据库 时间:
2016-03-02 20:15:04
阅读次数:
221
1.查看文件指令:cat tail head tac,more ,less 大家比较常用的是cat ,例如cat /etc/passwd 而当查看log时,因为需要关注的往往是最新的内容,则往往用到的指令是tail 如,tail /var/maillog 而tac 输出的内容是与cat顺序相反的,最
分类:
系统相关 时间:
2016-03-02 20:08:37
阅读次数:
227
情形:提示 Device eth0 does not seem to be present 步骤: 1、vmware 克隆,选择full clone 2、启动克隆后的系统,修改ifcfg-eth0,/etc/sysconfig/network-scripts/ifcfg-eth0,修改ip、HWAD
分类:
其他好文 时间:
2016-03-02 17:54:36
阅读次数:
196
Operating System Version(s) Location Unix, Unix-like, POSIX /etc/hosts Microsoft Windows 3.1 %WinDir%\HOSTS Microsoft Windows 95, 98, ME %WinDir%\host...
分类:
其他好文 时间:
2016-03-02 15:03:07
阅读次数:
117
安装编译依赖yuminstallgccgcc-c++cmakencurses-develbison安装内存优化jemallocwgethttp://www.canonware.com/download/jemalloc/jemalloc-3.6.0.tar.bz2tarxjfjemalloc-3.6.0.tar.bz2cdjemalloc-3.6.0./configuremake&&makeinstallecho‘/usr/local/lib‘>/etc/ld.s..
分类:
数据库 时间:
2016-03-02 11:18:53
阅读次数:
211
#cat/etc/passwd root:x:0:0:Superuser:/: daemon:x:1:1:Systemdaemons:/etc: bin:x:2:2:Ownerofsystemcommands:/bin: sys:x:3:3:Ownerofsystemfiles:/usr/sys:
分类:
系统相关 时间:
2016-03-02 11:08:06
阅读次数:
168
$ crontab -e 例如:每天两点钟执行 0 2 */1 * * /usr/bin/python /www/tbktsh/sendms.py &> /dev/null 01 * * * * root run-parts /etc/cron.hourly # 每小时执行/etc/cron.hou
分类:
系统相关 时间:
2016-03-02 10:48:52
阅读次数:
198