共 44 篇文章 |
|
如何重置CentOS7的Root密码如何重置CentOS7的Root密码分享至:02014-10-31 14:56:24 来源:互联网 点击:44导读: 重置Centos 7 Root密码的方式和Centos 6完全不同。1 - 在启动grub菜单,选择编辑选项启动2 - 按键盘e... 重置Centos 7 Root密码的方式和Centos 6完全不同。6 - 重置密码。passwd root. 阅391 转1 评0 公众公开 15-04-25 14:03 |
是由于你nfs服务器没有启动,可通过service nfs start 启动。mount.nfs: access denied by server while mounting.从出错日志可以看出,mount.nfs: access denied by server while mounting 192.168.3.12:/home/lzgonline/rootfs 被拒绝的原因是因为使用了非法端口,功夫总没白费,终于在一个linux技术论坛上找到了答案://如果端口号大于1024... 阅142 转0 评0 公众公开 14-11-26 09:39 |
这个时候我们需要使用 Libtool 的执行模式,使用下面的命令调试程序 : $ libtool --mode=execute gdb main 卸载 Libtool 库 使用下面的命令可以卸载安装的库 : $ libtool --mode=uninstall rm /tmp/libcompress.la 这个命令的输出如下 : rm /tmp/libcompress.la /tmp/libcompress.so.0.0.0 /tmp/libcompress.so.0 /tmp/libcompress.so /tmp/lib... 阅495 转0 评0 公众公开 14-11-16 16:19 |
Now let’s leave Wget to work in the background, and write its progress to log file log. It is tiring to type –tries, so we shall use -t.wget -t 45 -o log http://fly.srk.fer.hr/jpg/flyweb.jpg 注:-o log 把显示的信息写信到log文件中,亦可改为:wget -t 45 -o log.txt http://www.wcsky.com 即信息写入到log.txt文件中。 阅142 转1 评0 公众公开 14-04-16 14:53 |
ubuntu12.04恢复当我们原来系统中有ubuntu的时候,如果我们重装或安装新的windows系统时,会发现ubuntu系统启动菜单不见啦,我们重现安装ubuntu系统也可以解决这个问题,但是我们以前在ubuntu系统做的努力都白费啦,这里我介绍一下使用ubuntu系统盘来恢复我们的ubuntu系统启动菜单。3、查询ubuntu所在分区。mount /dev/sda1 /media/ubuntu(将sd... 阅1093 转1 评0 公众公开 14-01-13 16:40 |
#sudo apt-get install samba#sudo apt-get install smbclient.保存现有的配置文件sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.bak.修改现配置文件sudo gedit /etc/samba/smb.conf.四. 创建samba帐户 sudo touch /etc/samba/smbpasswd sudo smbpasswd -a phinecos.五. 重启samba服务器sudo /etc/init.d/samba restart. 阅35 转1 评0 公众公开 13-11-06 10:46 |
xxd命令。xxd [options] [infile [outfile]]xxd -r[evert] [options] [infile [outfile]]逆向操作: 把xxd的十六进制输出内容转换回原文件的二进制内容。$ xxd -l 120 -c 12 xxd.10000000: 2e54 4820 5858 4420 3120 224d .$ xxd input_file | xxd -r -s 100 >output_file.$ echo ‘0000029: 3574 68′ | xxd -r – xxd.1$ xxd -s 0×28 ... 阅9772 转9 评0 公众公开 12-12-28 14:20 |
ubuntu12.04下cskope vim ctags1: 安装cscope 和ctagssudo apt-get install kscope 注:kscope不太好用了在12.04中。设置vimrcif has("cscope") set csprg=/usr/bin/cscope set csto=1 set cst set nocsverb if filereadable("cscope.out") cs add cscope.out endif set csverbendif.find .-type f >... 阅267 转0 评0 公众公开 12-11-13 17:12 |
环境变量设置。$ unset $TEST #删除环境变量TEST.用VI在文件/etc/profile文件中增加变量,该变量将会对Linux下所有用户有效,并且是"永久的"。在shell的命令行下直接使用[export 变量名=变量值] 定义变量,该变量只在当前的shell(BASH)或其子shell(BASH)下是有效的,shell关闭了,变量也就失效了,再打开新shell时就没有这个变量,需... 阅63 转0 评0 公众公开 12-11-05 10:19 |
shell 更改oracle@zeng ~]$ chsh -l/bin/sh/bin/bash/sbin/nologin/bin/tcsh/bin/csh/bin/ksh修改当前的shell[oracle@zeng ~]$ chsh Changing shell for oracle.Password: New shell [/bin/bash]: /bin/kshShell changed.系统当前可用的shell存在在/etc/shells文件中。[oracle@zeng ~]$ cat /etc/shells/bin/sh //早期unix版本上所使用的shel... 阅64 转0 评0 公众公开 12-10-25 22:56 |