方法一: 1. 在/etc/init.d/下放置启动脚本,比如postgresqlroot@ubuntu:/etc/init.d# cat postgresql #!/bin/shset -e ### BEGIN INIT INFO# Provides: postgresql# Required-S ...
分类:
系统相关 时间:
2017-10-17 16:38:14
阅读次数:
228
31w/m 43 Children always appreciate small gifts of money. Father, of course, provides a regular supply of pocket-money, but uncles and aunts are alway ...
分类:
其他好文 时间:
2017-10-16 09:43:57
阅读次数:
185
sed是所谓的流编辑器,我们经常用它来做一些文本替换的事情,这是sed最擅长的事情,如sed 's/Bob/Tom/g'就是把文章中所有的Bob改成Tom。 sed是图灵完备的,作为sed的粉丝,喜欢用sed做各种sed不擅长的事情,这里实现一下wc -c的功能,也就是统计文章单词数量。 我习惯喜欢 ...
分类:
其他好文 时间:
2017-10-14 01:49:46
阅读次数:
300
This guide is patterned after my “Doing well in your courses”, a post I wrote a long time ago on some of the tips/tricks I’ve developed during my unde ...
分类:
其他好文 时间:
2017-10-09 11:27:31
阅读次数:
240
(The other reason (and the one more pertinent to Java developers), is that it provides a nice way to handle common exceptions. Why do I say nice? Firs ...
分类:
其他好文 时间:
2017-10-07 17:45:25
阅读次数:
164
[root@MiWiFi-R2D-srv ~]# vi /etc/grub.d/40_custom #!/bin/shexec tail -n +3 $0# This file provides an easy way to add custom menu entries. Simply type ...
分类:
其他好文 时间:
2017-10-07 16:26:16
阅读次数:
194
(一)通过命令行的方式 1.linux服务器端设置 在linux主机上,安装上传下载工具包rz及sz; 如果不知道你要安装包的具体名称,可以使用yum provides */name 进行查找系统自带软件包的信息; 一般会列出软件包的名称及版本,还有安装路径;查询到软件包名后,使用yum insta ...
分类:
Web程序 时间:
2017-10-05 15:40:21
阅读次数:
324
<os和sys的官方解释> ?os os: This module provides a portable way of using operating system dependent functionality. 这个模块提供了一种方便的使用操作系统函数的方法。 ?sys sys: This m ...
分类:
编程语言 时间:
2017-10-04 18:32:37
阅读次数:
294
在我们开始前先介绍下流程: 1 Bower是什么? bower是一个包管理工具 只不过它面向前端。 1.1 安装 1.1.1 安装node.js 在我们安装Bower前应该先安装node.js,因为安装Bower我们需要用到npm,首先先看看我们是否安装了npm: 如果没有输出版本号,那么可以到no ...
分类:
其他好文 时间:
2017-10-03 22:20:45
阅读次数:
169