随笔分类 - Linux
摘要:今天看到消息,来自大神阮一峰的《bash脚本教程》开源发布了, 我也借此机会来总结个 bash极简教程 。 本文是一个更加简化的《bash极简教程》,告诉你什么时候需要使用bash,最常用的bash语法及关键字使用。 命令能搞定的,不用写bash脚本 在Linux系统里,我们经常会遇到一些操作,不能
阅读全文
摘要:Linux基本开发环境配置 前一篇文章配置了基本的SSH,本文来讲讲关于基本的开发环境的配置,包括git,c,c++,nodejs,nginx。 安装git和配置无密码登录github yum install git ssh-keygen -t rsa -C "github_id_email" Gi
阅读全文
摘要:http://www.digitalinternals.com/unix/unix-linux-run-command-with-timeout/500/ There are two ways to send a SIGKILL signal to the process from the time
阅读全文
摘要:1. where to load dynamic so: (rpath isdetermined and recorded when compiling, it is also used to find dynamic library) https://unix.stackexchange.com/
阅读全文
摘要:1. 下载已经安装好的ubuntu的virtualbox的vdi 下载地址: http://www.osboxes.org/ubuntu/ ubuntu 16.04 Xenial VirtualBox (VDI) 64bit Download Size: 1.0GB, MD5: 52e08e7a0c
阅读全文
摘要:Differences between grep, pgrep, egrep, and fgrep (Linux): grep grep is an acronym that stands for "Global Regular Expressions Print". grep is a progr
阅读全文
摘要:原文:http://www.unixmen.com/how-to-install-lamp-stack-on-ubuntu-16-04/ LAMP is a combination of operating system and open-source software stack. The acr
阅读全文
摘要:http://www.unixmen.com/ansible-install-configure-and-use/ Our goals is install, configure and use Ansible software in Ubuntu 14.04 x64. With this soft
阅读全文
摘要:转自: http://m.oschina.net/blog/616526, 版权归原作者所有。 1 Docker与虚拟机 2 搭建过程 2.1 准备宿主系统 准备一个 CentOS 7操作系统,具体要求如下: 必须是 64 位操作系统 建议内核在 3.8 以上 通过以下命令查看您的 CentOS 内
阅读全文
摘要:这个cron不能执行: * * * * * /bin/echo `/bin/date +"%Y-%m-%d-%T"` >> /home/adminuser/test.txt 2>&1 需要修改为: 因为%在cron中需要被转意 */1 * * * * /bin/echo /bin/date +"\%
阅读全文
摘要:转自:http://www.cnblogs.com/eshizhan/archive/2012/07/16/2592902.html0.接触Linux恐怕对SSH再熟悉不过了,还有scp,sftp各种方便的功能,一般的使用都需要ip:port(如果不是默认22的话),但有些情况比较特殊,就是想连接一...
阅读全文
摘要:Many system administrators make a practice of using GNU Screen or tmux to manage jobs running in the terminal. If you have a long-running job that you...
阅读全文
摘要:Answer:When applying permissions to directories on Linux, the permission bits have different meanings than on regular files.The write bit allows the a...
阅读全文
摘要:今天的文章里我们会讲到一些使用Linux命令行工具来发送带附件的电子邮件的方法。它有很多用处,比如在应用程序所在服务器上,使用电子邮件发送 一个文件过来,或者你可以在脚本中使用这些命令来做一些自动化操作。在本文的例子中,我们会使用foo.tar.gz文件作为附件。有不同的命令行工具可以发送邮件,这里...
阅读全文
摘要:一个好的备份最基本的目的就是为了能够从一些错误中恢复:人为的失误磁盘阵列或是硬盘故障文件系统崩溃数据中心被破坏等等。所以,我为大家罗列了一些开源的软件备份工具。当为一个企业选择备份工具的时候,你都考虑什么呢?确定你正在部署的软件具有下面的特性开源软件– 你务必要选择那些源码可以免费获得,并且可以修改...
阅读全文
摘要:20 Unix Command Line Tricks – Part Ihttp://www.cyberciti.biz/open-source/command-line-hacks/20-unix-command-line-tricks-part-i/Deleting a HUGE fileI h...
阅读全文
摘要:转自:http://www.cnblogs.com/sixiweb/archive/2012/11/26/2789458.html安装tomcat7:tomcat7下载主页: http://tomcat.apache.org/download-70.cgi下载:(core: tar.gz)wget http://mirror.bit.edu.cn/apache/tomcat/tomcat-7/v7.0.47/bin/apache-tomcat-7.0.47.tar.gztar -zxvf apache-tomcat-7.0.47.tar.gzmv apache-tomcat-7.0.47 /u
阅读全文
摘要:在centos中安装tomcat61)通过yum自动安装tomcat和dependencesroot@Centos_AAA ~]# yum install tomcat6[root@Centos_AAA ~]# service tomcat6 start[root@Centos_AAA ~]# chkconfig tomcat6 on[root@Centos_AAA ~]# yum install tomcat6-webapps[root@Centos_AAA webapps]# yum install tomcat6-admin-webapps如果访问http://192.168.0.120
阅读全文
摘要:转自: http://www.tecmint.com/35-practical-examples-of-linux-find-command/35 Practical Examples of Linux Find CommandPart I: Basic Find Commands for Finding Files with NamesPart II: Find Files Based on their PermissionsPart III: Search Files Based On Owners and GroupsPart IV: Find Files and Directories
阅读全文