linux
文章平均质量分 52
侯志贞
这个作者很懒,什么都没留下…
展开
-
《unix环境高级编程》源代码编译找不到apue.h等错误的解决办法
(一)作者提供的编译方法的实现 README文件中给出的编译方法如下: To build the source, edit the Make.defines.* file for your system and set WKDIR to the pathname of the tree containing the source code. Then just run "m转载 2013-08-01 17:30:41 · 748 阅读 · 0 评论 -
rz -be 从windows上发送二进制文件
rz -be 从windows上发送二进制文件原创 2016-08-11 14:11:07 · 2253 阅读 · 1 评论 -
linux下IPTABLES配置详解 修订
如果你的IPTABLES基础知识还不了解,建议先去看看.开始配置我们来配置一个filter表的防火墙.(1)查看本机关于IPTABLES的设置情况[root@tp ~]# iptables -L -nChain INPUT (policy ACCEPT)target prot opt source destination转载 2014-09-05 17:03:06 · 564 阅读 · 0 评论 -
Linux下patch的制作和应用
学习资料的收集比较简单,方法一类似于这种初级问题网上资料非常丰富,google或者baidu搜索一下,然后选择有价值的资料,方法二是阅读man在线文档。完成收集工作,当然最终要在自己的Linux上作实验,比较总结,消化吸收为自己的东西。要除去这么一种错误思想:一定要学全。要知道,一次学全是不可能的,只能先学习最为常用的,在以后不断实践的过程中逐步的丰富,最终达到比较高的水平。把握的原则是:日有所学转载 2014-06-30 15:01:04 · 434 阅读 · 0 评论 -
查看进程打开的文件句柄
lsof -p 8495LSOF(8) LSOF(8)NAME lsof - list open filesSYNOPSIS lsof [ -?abChlnNOPRtUvVX ] [ -A A ] [ -c原创 2014-06-03 17:19:44 · 6542 阅读 · 0 评论 -
GPG key retrieval failed: [Errno 14] Could not open/read file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
yum install python-pipLoaded plugins: fastestmirror, refresh-packagekit, securityLoading mirror speeds from cached hostfileepel/metalink原创 2013-11-28 09:30:15 · 5310 阅读 · 0 评论 -
VirtualBox下复制的ubuntu虚拟机无法上网
复制虚拟机后由于VMware重新分配了网卡的mac地址,而ubunut中又把原先的mac地址保存在缓存中,所以导致怎么重启网卡都是不能启用。错误信息:当执行 sudo/etc/init.d/networkingrestart * Reconfiguring network interfaces...eth0: ERROR while getting interface f转载 2013-11-27 11:20:00 · 1924 阅读 · 0 评论 -
linux平台下通过nat上网
以下所有的设置都是以root权限执行.一 设置能上网的计算机1. vim /etc/sysctl.conf 设置 net.ipv4.ip_forward = 12. sysctl -p 重新加载配置3.设置nat转发iptables -t nat -A POSTROUTING -o eth2 -j SNAT --to 10.10.2.15eth2是能上网的IP,原创 2013-11-17 13:21:35 · 607 阅读 · 0 评论 -
virtualbox 复制ubuntu操作系统之后不能上网的解决办法
首先删除MAC地址缓存:登录虚拟机,删除网络配置缓存文件。#rm /etc/udev/rules.d/70-persistent-net.rules重启虚拟机原创 2013-11-01 14:35:34 · 751 阅读 · 0 评论 -
Networking in VirtualBox
https://blogs.oracle.com/fatbloke/entry/networking_in_virtualbox1Networking in VirtualBox is extremely powerful, but can also be a bit daunting, so here's a quick overview of the different way转载 2013-10-11 10:02:17 · 823 阅读 · 0 评论 -
LINUX nautilus 命令
在cent os上,想要将终端上某个目录的文件拷贝到桌面上,通过filesystem去查找很麻烦,也很难找到对应路径。这个问题可以通过 nautilus命令解决,进入拷贝文件的目录中,在当前位置上键入 nautilus命令,会以窗口形式打开当前目录。 在linux命令行界面中,也就是终端上,键入nautilus(鹦鹉螺),会以root权限打开一个窗口,窗口内容是终端上的位置,从而可以用ro转载 2013-08-29 17:57:57 · 7710 阅读 · 0 评论 -
How to Change the Hostname of a Linux System
Normally we will set the hostname of a system during the installation process. Many peoples don’t care about this, and don’t change the hostname even if for example this was set to something really st转载 2013-08-12 09:26:50 · 677 阅读 · 0 评论 -
ProcessManagement
This is still a work in progress. Expect some rough edges.目录The basicsSimple questionsHow do I run a job in the background?My script runs a job in the background. How do I get its PI转载 2013-08-20 17:16:06 · 1355 阅读 · 1 评论 -
undefined reference to 'pthread_create'问题解决
由于是Linux新手,所以现在才开始接触线程编程,照着GUN/Linux编程指南中的一个例子输入编译,结果出现如下错误:undefined reference to 'pthread_create'undefined reference to 'pthread_join'问题原因: pthread 库不是 Linux 系统默认的库,连接时需要使用静态库 libpthrea转载 2013-08-05 11:28:53 · 440 阅读 · 0 评论 -
Redis安装部署
Redis是一种高级key-value数据库。它跟memcached类似,不过数据可以持久化,而且支持的数据类型很丰富。有字符串,链表,集 合和有序集合。支持在服务器端计算集合的并,交和补集(difference)等,还支持多种排序功能。所以Redis也可以被看成是一个数据结构服务 器。Redis的所有数据都是保存在内存中,然后不定期的通过异步方式保存到磁盘上(这称为“半持久化模式”);也转载 2016-08-11 14:14:33 · 312 阅读 · 0 评论