Ubuntu定时任务

  1. 编辑配置文件:

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    #增加任务:
    crontab -e

    # Edit this file to introduce tasks to be run by cron.
    #
    # Each task to run has to be defined through a single line
    # indicating with different fields when the task will be run
    # and what command to run for the task
    #
    # To define the time you can provide concrete values for
    # minute (m), hour (h), day of month (dom), month (mon),
    # and day of week (dow) or use '*' in these fields (for 'any').#
    # Notice that tasks will be started based on the cron's system
    # daemon's notion of time and timezones.
    #
    # Output of the crontab jobs (including errors) is sent through
    # email to the user the crontab file belongs to (unless redirected).
    #
    # For example, you can run a backup of all your user accounts
    # at 5 a.m every week with:
    # 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
    #
    # For more information see the manual pages of crontab(5) and cron(8)
    #
    # m h dom mon dow command

    #每分钟访问百度首页
    */1 * * * * curl -v "http://www.baidu.com"

阅读全文

hexo+coding 搭建博客

1、安装Git

http://git-for-windows.github.io/
https://github.com/git-for-windows/git/releases/download/v2.6.4.windows.1/Git-2.6.4-64-bit.exe

阅读全文

Ubuntu下安装Shadowsocks

  1. 更新列表:
    1
    sudo apt-get update

阅读全文

MarkdownPad2.5 注册码

软件版本

注册信息转载

邮箱:

1
Soar360@live.com

阅读全文

wechat-javax.net.ssl.SSLException异常

在使用微信公众平台开发模式(JAVA) SDK 发现调用https的异常:

1
2
3
4
5
/**
* 微信公众平台开发模式(JAVA) SDK
* (c) 2012-2013 ____′↘夏悸 <wmails@126.cn>, MIT Licensed
* http://www.jeasyuicn.com/wechat
*/

阅读全文

linux 常用命令

简介

linux常用命令

scp

1
2
3
4
5
6
7
8
9
#文件复制
scp /home/root/music/1.mp3 root@192.168.1.100:/home/root/others/music
scp /home/root/music/1.mp3 root@192.168.1.100:/home/root/others/music/001.mp3
#目录复制
scp -r /home/root/music/ root@192.168.1.100:/home/root/others/
#远程文件复制
scp root@192.168.1.100:/home/root/others/music /home/root/music/1.mp3
#远程目录复制
scp -r root@192.168.1.100:/home/root/others/ /home/root/music/

阅读全文

ubuntu dnsmasq配置

简介

DNSmasq是一个轻巧的,容易使用的DNS服务工具,它可以应用在内部网和Internet连接的时候的 IP地址NAT转换,也可以用做小型网络的DNS服务。

安装

1
sudo apt-get install dnsmasq

阅读全文

安装Hadoop2.5.0

安装Hadoop,单机模式。

1、免密码ssh设置:

免密码ssh设置

阅读全文

ubuntu使用ssh-keygen设置ssh无密码登录

输入时,会提示创建.ssh/id_rsa、id_rsa.pub的文件,其中第一个为密钥,第二个为公钥。过程中会要求输入密码,为了ssh访问过程无须密码,直接回车 。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
root@ubuntu:~# ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
Created directory '/root/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
84:50:44:e7:22:e1:f0:75:01:f2:c8:e9:45:39:66:70 root@ubuntu
The key's randomart image is:
+--[ RSA 2048]----+
| . ==Eo+. |
| = @== |
| Bo=.o |
| . o o |
| . S |
| |
| |
| |
| |
+-----------------+

阅读全文

Cygwin的 vim 退格键 方向键混乱

Cygwin里面vi的问题只是因为配置文件导致的问题,执行以下命令重新放好配置文件即可解决:

1
cp /usr/share/vim/{VIM_VERSION}/vimrc_example.vim ~/.vimrc

阅读全文