![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux
文章平均质量分 55
minions_222
这个作者很懒,什么都没留下…
展开
-
touch: cannot touch ‘/mnt/dpnrxrnru8/3k2ntl2ad3’: Transport endpoint is not connected
在测试ftp的时候,使用curlftpfs挂载了ftp服务器,挂载成功,在挂载点下建文件的时候报Transport endpoint is not connected分析原因:1.首先查了下这个错误,大部分解释都是mount挂载的问题,如下:mount残留,kill进程后umount后,重新mount成功,但此方法并未解决我的问题 https://blog.csdn.net/dddxxxx/article/details/78783501客户端的fuse.conf中 user_...原创 2020-07-08 14:23:03 · 668 阅读 · 0 评论 -
debian7.1请使用 apt-cdrom,通过它就可以让 APT 能识别该盘片。apt-get upgdate 不能被用来加入新的盘片。
root@i2test:/etc/apt# apt-get update忽略 cdrom://[Debian GNU/Linux 7.1.0 _Wheezy_ - Official amd64 DVD Binary-1 20130615-23:06] wheezy Release.gpg忽略 cdrom://[Debian GNU/Linux 7.1.0 _Wheezy_ - Offici原创 2017-06-20 16:25:03 · 6170 阅读 · 0 评论 -
mount执行时相关错误
1.mount.nfs: remote share not in 'host:dir' formatmount -t nfs -o ro,bg,soft,nolock 192.168.1.100:/sharefiles /nfs/pub要注意主机ip与文件目录之间的冒号不可少,很多情况下上面的问题就是缺少冒号引起的。原创 2017-06-19 18:23:12 · 2994 阅读 · 0 评论 -
linux中挂载nas下的ISCSI盘
检查是否安装iscsi[root@localhost bak]# rpm -qa | grep iscsiiscsi-initiator-utils-devel-6.2.0.873-26.el6.x86_64iscsi-initiator-utils-6.2.0.873-26.el6.x86_64[root@localhost bak]# 1.客户端安装iscsi原创 2017-06-19 18:18:27 · 1881 阅读 · 0 评论 -
安装memtester报错:./compile: line 3: exec: cc: not found解决办法
[root@localhost memtester-4.2.2]# make( cat warn-auto.sh; \echo CC=\'`head -1 conf-cc`\'; \echo LD=\'`head -1 conf-ld`\' \) > auto-ccld.shcat auto-ccld.sh make-compile.sh > make-compilechm原创 2017-06-19 14:08:31 · 8378 阅读 · 1 评论 -
ubuntu安装mysql
1. sudo apt-get install mysql-server2. apt-get isntall mysql-client3. sudo apt-get install libmysqlclient-dev原创 2017-06-07 09:37:21 · 189 阅读 · 0 评论 -
debian更新源时报错
命中 http://mirrors.sohu.com stable/main Translation-zh_CN命中 http://mirrors.sohu.com stable/main Translation-zh获取:1 http://mirrors.sohu.com stable/main Translation-en [4,583 kB]获取:2 http://mirrors原创 2017-03-17 17:48:07 · 1162 阅读 · 0 评论 -
oracle linux配置yum源
1.通过虚拟机-设置添加CD/DVD 对应系统版本iso文件2.创建挂载点:mkdir /root/linnux3.挂载:mount -o loop /dev/cdrom /root/linux4.cd /etc/yum.repo.d/,vi local.repo,内容如下:[myyum]name=olinux Myyumbaseurl=file:///root/li原创 2017-06-01 16:21:59 · 798 阅读 · 0 评论 -
centos 6.5配置nfs服务器
1)安装:yum install nfs-utils rpcbind nfs4-acl-tools2)创建共享目录:mkdir /share3)配置目录,权限:vim /etc/exports/share *(rw,sync,no_root_squash)4)启动service rpcmind restartservice nfs restart5)显示nfs服务IQ上原创 2017-03-03 15:19:57 · 417 阅读 · 0 评论 -
debian安装mysql
root@i2test:~# apt-get install mysql-server正在读取软件包列表... 完成正在分析软件包的依赖关系树 正在读取状态信息... 完成 将会安装下列额外的软件包: libaio1 libdbd-mysql-perl libdbi-perl libhtml-template-perl libmysqlclient18原创 2017-06-08 10:19:18 · 3613 阅读 · 0 评论 -
RHEL4 安装yum
wget http://yum.baseurl.org/download/2.0/yum-2.0.8-1.src.rpmrpmbuild --rebuild yum-2.0.8-1.src.rpm(我的机器没有rpmbuild命令),解决办法如下: wget http://vault.centos.org/4.8/os/x86_64/CentOS/RPMS/rpm-build-4.转载 2017-06-23 11:32:26 · 2051 阅读 · 1 评论 -
linux实用命令
1.Linux列出某文件夹下面所有文件包括子目录的文件 ls -la -R原创 2017-06-20 11:41:39 · 494 阅读 · 0 评论 -
ubuntu16.04.2修改内核启动顺序后重启机器未生效
1.查看系统默认内核root@i2-virtual-machine:~# uname -r4.8.0-36-generic2.查看可获取的内核apt-cache search linux(结果有很多,此处截取一部分)3.此处我需要安装4.4.0-62-generic版本的内核sudo apt-get install linux-headers-4.4.0原创 2017-08-15 14:27:20 · 7968 阅读 · 4 评论 -
redhat5挂载nas盘报错: reason given by server: Permission denied
mount -t nfs4 192.168.80.90:/mread /nas原创 2017-08-25 10:02:30 · 823 阅读 · 0 评论 -
ubuntu 安装ssh-server时出现错误:openssh-server: Depends: openssh-client (= 1:5.3p1-3ubuntu3) but 1:5.3p1-3u
转自:http://www.cnblogs.com/xiaowenhu/p/3185631.htmltiger@ubuntu:~/Desktop/work$ sudo apt-get install openssh-server [sudo] password for tiger: Reading package lists... DoneBuilding dependency tr转载 2017-08-17 17:29:17 · 1741 阅读 · 0 评论 -
vim编辑器使用技巧
1.跳到最后一行:shift+G原创 2017-07-05 10:49:41 · 218 阅读 · 0 评论 -
suse 11 sp4配置yast源报错cannot access installation media(Medium 1),Check whether the server is accessibl
1.在图形界面配置computer->network->Routing->Default Gateway2.通过配置文件配置vim /etc/sysconfig/network/routes,加入网关default 192.168.x.x配置完成后重启网络原创 2017-06-28 15:20:00 · 1683 阅读 · 0 评论 -
rpm安装相关报错及解决办法
[root@localhost tmp]# rpm -ivh kernel-2.6.18-128.1.6.el5.src.rpm warning: kernel-2.6.18-128.1.6.el5.src.rpm: Header V3 DSA signature: NOKEY, key ID e8562897error: cannot create %sourcedir /usr/src原创 2017-02-16 10:17:13 · 4298 阅读 · 0 评论 -
挂载nfs服务器报错:mount: mount to NFS server '192.168.79.194' failed: System Error: No route to host.
解决办法:关闭nfs服务器防火墙:/etc/init.d/iptables stop原创 2017-06-23 13:36:28 · 2707 阅读 · 0 评论 -
ubuntu16.04.2安装mysql
http://blog.csdn.net/yancey_blog/article/details/52780357转载 2017-05-27 15:56:36 · 247 阅读 · 0 评论 -
ubuntu16.04.2安装完后重启报错[sda] Assuming drive cache: write through
原因:检测主机的物理连接线,发生问题时“已连接”未勾选,重启的时候找不到iso文件解决办法:勾选“已连接”,重启机器成功原创 2017-05-23 14:26:06 · 61226 阅读 · 0 评论 -
configure: error: xml2-config not found. Please check your libxml2 installation
configure: error: xml2-config not found. Please check your libxml2 installation参考文章:http://blog.csdn.net/anljf/article/details/6981247 安装php时的报错checking libxml2 install dir... nochecking f转载 2017-03-15 16:32:33 · 421 阅读 · 0 评论 -
linux清除缓存
[root@localhost /]# free -m total used free shared buffers cachedMem: 7864 3475 4389 0 6 3219-/+ buffers/cache:原创 2017-01-11 13:13:16 · 934 阅读 · 0 评论 -
linux修改系统时间
date -s 2017-01-10date -s 16:20:21clock -w原创 2017-01-10 16:20:27 · 342 阅读 · 0 评论 -
解决Package fuse was not found in the pkg-config search path.
gcc -Wall `pkg-config fuse --cflags --libs` -D_FILE_OFFSET_BITS=64 fusexmp.c -o fusexmpPackage fuse was not found in the pkg-config search path.Perhaps you should add the directory containing `f原创 2017-02-04 09:38:55 · 20107 阅读 · 1 评论 -
Xshell 5鼠标选中,终端立即退出(ctrl+c)
选中文字复制”与词典软件的“划词翻译”相冲突,关掉词典划译功能即可。参考链接:http://ju.outofmemory.cn/entry/117756原创 2017-01-09 16:01:03 · 2221 阅读 · 0 评论 -
解决xhsell登录超时问题
查看超时时间echo $TMOUT设置超时时间为0vim /etc/profileexport IMOUT=0设置完:source /etc/profile生效原创 2016-12-21 11:57:04 · 898 阅读 · 0 评论 -
执行shell脚本报错:bin/sh^M: bad interpreter: No such file or directory
执行shell脚本报错 bin/sh^M: bad interpreter: No such file or directory原因:.sh脚本是在windows下用编辑器写的,和linux系统的编码格式不同。解决办法:1.确保用户对脚本具有读写执行权限chmod a+x start.sh2.查看并修改文件格式vi start.sh:set ff原创 2016-11-25 16:16:44 · 659 阅读 · 0 评论 -
Centos 6.5启动 an error occurred during the file system check错误的解决
an error occurred during the file system check错误的解决 1centos 启动时候出现错误,出现了an error occurred during the file system check提示,另外被告知要么输入root密码进行修复, centos 启动时候出现错误出现了an error occurred during the原创 2016-12-13 09:41:38 · 3475 阅读 · 0 评论 -
redhat 5支持ext4文件系统
http://www.linuxidc.com/Linux/2013-03/80608.htm转载 2017-01-18 16:58:09 · 523 阅读 · 0 评论 -
Ubuntu12.04安装完成,切换root用户是报错Authentication failure
原因:系统默认未激活root用户,需手动激活解决办法:sudo passwd,修改完root密码后重新切换到root用户原创 2017-03-28 14:14:42 · 287 阅读 · 0 评论 -
debian安装软件时报错
error while loading shared libraries: libcurl-nss.so.4: cannot open shared object file:No such file or directory解决办法:apt-get install libcurl3-nss原创 2017-03-20 16:25:33 · 1109 阅读 · 0 评论 -
error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: Input/output er
[root@I2 ~]# rpm -ivn unixODBC-2.2.14-14.el6.i686.rpm rpm: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: Input/output error解决办法:执行 /sbin/ldconfig -v原创 2017-02-27 11:09:43 · 2439 阅读 · 0 评论 -
ubuntu中安装chkconfig
在ubuntu上默认是不支持chkconfig命令的,但可以自己安装,安装包已经上传,安装包路径:http://download.csdn.net/detail/hylongsuny/5276536方法:在存放目录执行:dpkg -i chkconfig.deb转载 2017-03-09 11:07:26 · 1587 阅读 · 0 评论 -
ubuntu下执行shell脚本报错 Syntax error: "(" unexpected
/file_and_dir.sh: 44: ./file_and_dir.sh: Syntax error: "(" unexpected解决办法:sudo dpkg-reconfigure dash原创 2017-03-08 15:19:03 · 1787 阅读 · 0 评论 -
解决libfuse.so.2:cannot open shared object file
解决步骤:1)vi /etc/ld.so.conf.d/fuse.conf (新增一个文件) 写入:/usr/local/lib(libfuse.so.2所在位置)2)ldconfig(重新载入系统)转载 2017-02-04 09:21:41 · 8812 阅读 · 0 评论 -
fuse文件系统安装报错
configure: error: in `/zstmp/fuse-2.8.4':configure: error: no acceptable C compiler found in $PATHSee `config.log' for more details.解决办法:安装gcc:yum install gcc原创 2017-02-03 14:44:17 · 1289 阅读 · 1 评论 -
yum 使用报错
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"Error: Cannot find a valid ba原创 2017-02-03 14:29:19 · 345 阅读 · 0 评论 -
Failed dependencies:libltdl.so.7 is needed by unixODBC-2.2.14-14.el6.i686
[root@db Packages]# rpm -ivh unixODBC-2.2.14-14.el6.i686.rpm error: Failed dependencies:libltdl.so.7 is needed by unixODBC-2.2.14-14.el6.i686libreadline.so.6 is needed by unixODBC-2.2.14-14.el6.原创 2016-12-12 10:03:20 · 5095 阅读 · 1 评论