
Linux
yangzhenping
我坚信让我一往无前的唯一力量就是我热爱我所做的一切!
展开
-
9种企业常用的Linux和Unix服务器
9种企业常用的Linux和Unix服务器原创 2015-06-01 16:30:54 · 7439 阅读 · 0 评论 -
刚做了一个开源工具:使用UI来管理Linux和Unix机器--SSHConnector
刚做了一个开源工具:使用UI来管理Linux和Unix机器--SSHConnector原创 2017-09-05 13:58:15 · 1143 阅读 · 0 评论 -
这两天写了两个开源小工具
这两天写了两个开源小工具第一个工具:https://github.com/wicrecend/PingAll读取machines.txt文件中的机器,然后ping每一台机器,得到机器连接的结果。第二个工具:https://github.com/wicrecend/GetOS.sh在任意Linux/Unix/Mac平台上运行GetOS.sh这个脚本,得到当前的操作系统平台原创 2017-04-28 17:05:09 · 876 阅读 · 2 评论 -
当开源库碰到错误怎么办?
当开源库碰到错误怎么办?开源有个好处就是免费,但是使用开源项目经常会碰到各种问题,下面列举下我碰到的其中一个问题。项目中使用开源库:https://sshnet.codeplex.com/连接某台Linux机器时碰到下面的问题:Renci.SshNet.Common.SshAuthenticationException: No suitable authentication method found to complete 查了Google,各种修改方法,最后找到了解决方案:1.原创 2016-02-25 16:51:48 · 2169 阅读 · 2 评论 -
如何安装Yaf框架?
如何安装Yaf框架?1、先安装apache、mysql和phpapt-get updateapt-get install apache2apt-get install mysql-server libapache2-mod-auth-mysql php5-mysqlapt-get install php5 libapache2-mod-php5 php5-mcrypt2、再安装pecl等依赖组件apt-get install php-pearapt-get insta原创 2016-03-09 15:07:17 · 5613 阅读 · 4 评论 -
【dotnet跨平台】你知道dnx run和dotnet run有什么区别吗?
你知道dnx run和dotnet run有什么区别吗?dotnet run是基于dotnet-cli项目:http://github.com/dotnet/cli,而dnx run是https://github.com/aspnet/dnx项目,dotnet run已经取代dnx run。dotnet run会编译出IL二进制文件和可执行文件放在磁盘上,而dnx run是直接在内存中编译和执行,不存储在磁盘上。参考:http://www.talkingdotnet.com原创 2016-03-29 17:26:54 · 2009 阅读 · 0 评论 -
关于Linux开源项目基础组件make编译流程
关于Linux开源项目基础组件make编译流程很多Linux开源项目都会用到编译出可执行文件的make,这个是有一套流程的。首先,GNU构建系统:https://en.wikipedia.org/wiki/GNU_build_system 使用Autotool来编译和管理整个产品的生产流程。就是下面这张图:这里面需要先了解make和makefilemake:https://en.wikipedia.org/wiki/Make_(software)makefile:https:原创 2016-02-03 14:52:05 · 2917 阅读 · 0 评论 -
如何查看各种Linux命令的源码?
首先找到存放源码的镜像:http://www.gnu.org/prep/ftp.html我随便点了个镜像是这个:http://gnu.askapache.com/比如find这个命令的源码就在这里:http://gnu.askapache.com/findutils/下载下来之后要解压下,里面全部是用c语言写的。当然你也可以make直接编译出程序来用用。原创 2016-02-03 14:03:55 · 4227 阅读 · 1 评论 -
如何开发Linux内核?
如何开发Linux内核?推荐这篇文章:http://www.tldp.org/LDP/lkmpg/2.6/html/lkmpg.html下面是在Ubuntu下的输出:root@myhostname # makemake: Warning: File `Makefile' has modification time 11 s in the futuremake -C /lib/modules/3.13.0-24-generic/build M=/root modulesmake原创 2016-02-02 17:00:02 · 2310 阅读 · 3 评论 -
如何编译和安装memcached
如何编译和安装memcached编译和安装步骤: $ apt-get install git $ git clone https://github.com/memcached/memcached.git $ cd memcached $ apt-get install autotools-dev $ apt-get install automake $ ./autogen.sh $ ./configure $ make $ make test $ make install原创 2016-02-15 15:42:17 · 3647 阅读 · 1 评论 -
最重要,最常用和有用的Linux命令大集合
最重要,最常用和有用的Linux命令大集合原创 2015-12-29 16:06:07 · 2932 阅读 · 2 评论 -
g++编译出的多线程程序出错“segmentation fault"
g++编译出的多线程程序出错“segmentation fault"我使用的g++版本是g++ 4.4.3升级到4.7版本:add-apt-repository ppa:ubuntu-toolchain-r/testapt-get updateapt-get install gcc-4.7-baseapt-get install gcc-4.7apt-get install g++-4.7update-alternatives --install /usr/bin/gcc gcc原创 2015-11-26 16:21:33 · 5096 阅读 · 0 评论 -
如何把你的安卓手机变成Linux?
如何把你的安卓手机变成Linux?使用KBOX或者Limbo PC Emulator:http://www.linux-magazine.com/Online/Features/Convert-an-Android-Device-to-Linux使用Android Terminal Emulator:http://www.apk4fun.com/apk/1203/http://www.androiddrawer.com/25716/download-android-termin原创 2015-11-26 13:54:23 · 15350 阅读 · 1 评论 -
如何判断当前主机是物理机还是虚拟机?
如何判断当前主机是物理机还是虚拟机?Windows:在CMD里输入:Systeminfo | findstr /i "System Model"如果System Model:后面含有Virutal就是虚拟机,其他都是物理机或者用powershell命令:get-wmiobject win32_computersystem | fl modelLinux:在bash里输入:dmidecode -s system-product-name或者lshw -class system或者dmesg原创 2015-11-23 16:22:07 · 43759 阅读 · 0 评论 -
AIX平台安装python
AIX平台安装python注:AIX是IBM的一个商业Linux平台AIX rpms: http://www-03.ibm.com/systems/power/software/aix/linux/toolbox/date.htmlError:error: Failed dependencies:/bin/sh is needed by XXXSolution: rpm --rebuilddbpython dependencies:ftp://ftp.software.ibm.co原创 2015-11-24 15:56:42 · 6642 阅读 · 1 评论 -
Linux各种企业客户操作系统平台
Linux各种企业客户操作系统平台原创 2015-09-24 13:15:26 · 1640 阅读 · 1 评论 -
【分享】兼容各种Linux平台的关闭所有指定名字的进程的命令
【分享】兼容各种Linux平台的关闭所有指定名字的进程的命令kill -9 `ps -ef| grep processname| awk '{print $2}'`原创 2015-11-13 17:18:23 · 3145 阅读 · 0 评论 -
关于几年前开设的课程的一些说明
最近看了下几年前开设的课程,现在看起来当时做的一些课程讲得的确不够深入,但是由于目前工作比较忙,暂时没有重录或者做深入视频的计划,当时是现学现讲先录制的,现在想起来当时还是比较幼稚的尝试。注:1、其中memcached的教程中读音应该是mem-cash-dee或者mem-cashed,我当时读的是memo-cashed,虽然在后面的memcached源码分析视频中纠正了读音,但由于该视频没有时间进...原创 2018-03-10 09:56:02 · 718 阅读 · 0 评论