导航

随笔分类 -  ubuntu

摘要:在/etc/crontab中添加了任务1,并确认执行时间设置没有错。发现任务没有执行,而/var/log/cron.log日志文件中没有该计划任务的执行信息。另一个计划任务却能正确,通过修改任务1的执行时间发现任务已经执行,确认是时间的问题,而系统修改过时区没有重启,重启解决。 ... 阅读全文

posted @ 2016-02-27 10:28 ggzone 阅读(141) 评论(0) 推荐(0)

摘要:修改ip:/etc/network/interfaces 阅读全文

posted @ 2016-02-20 11:13 ggzone 阅读(129) 评论(0) 推荐(0)

摘要:#include#include#include#include#include#include#include#include#include#include#include#include#include /* 创建UDP套接口 */ struct sockaddr_i... 阅读全文

posted @ 2016-01-24 11:56 ggzone 阅读(493) 评论(0) 推荐(0)

摘要:在Linux系统下,一个Services的启动、停止以及重启通常是通过/etc/init.d目录下的脚本来控制的。然而,在启动或改变运行级别时,是在/etc/rcX.d中来搜索脚本。其中X是运行级别的number。本文将解释如何启动、关闭和修改服务的运行。当你在Debian下安装一个... 阅读全文

posted @ 2016-01-10 11:49 ggzone 阅读(401) 评论(0) 推荐(0)

摘要:所有linux系统详细设置参考: https://docs.mongodb.org/manual/tutorial/transparent-huge-pages/vi /etc/init.d/disable-transparent-hugepages#!/bin/sh### BEGI... 阅读全文

posted @ 2016-01-10 11:46 ggzone 阅读(864) 评论(0) 推荐(0)

摘要:ubuntu默认没有开启cron日志记录 1. 修改rsyslog sudo vim /etc/rsyslog.d/50-default.conf cron.* /var/log/cron.log #将cron前面的注释符去掉 2.重启rsyslog su... 阅读全文

posted @ 2015-12-05 13:42 ggzone 阅读(178) 评论(0) 推荐(0)

摘要:新安装的ubuntu14.04无法使用root用户ssh连接,显示ssh root permission denied 解决方法: /etc/ssh/sshd_confg: PermitRootLogin without-password改为 PermitRootLogin yess... 阅读全文

posted @ 2015-11-28 19:25 ggzone 阅读(126) 评论(0) 推荐(0)

摘要:添加alias ~/.bash_alias文件: alias go=”python /Users/xhat/Downloads/goagent/local/proxy.py” ~/.bash_profile文件: source ~/.bash_alias 命令行:source ~/.... 阅读全文

posted @ 2015-11-28 19:13 ggzone 阅读(112) 评论(0) 推荐(0)

摘要:ubuntu更换软件源/etc/apt/source.list163:deb http://mirrors.163.com/ubuntu/ trusty main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ t... 阅读全文

posted @ 2015-11-13 21:01 ggzone 阅读(179) 评论(0) 推荐(0)

摘要:ubuntu英文乱码:vi /etc/default/localeLANG=“en_US.UTF-8”LANGUAGE=“en_US:en”配置更新:dpkg-reconfigure localesreboot 阅读全文

posted @ 2015-11-13 20:54 ggzone 阅读(431) 评论(0) 推荐(0)

摘要:环境:ubuntu 14.04 32bit,boost_1_57_0前期准备:boost中,用到了别的函数库,所以为了使用boost中相应的功能,需要先安装系统中可能缺失的库 apt-get install mpi-default-dev #安装mpi库apt-get install libicu... 阅读全文

posted @ 2015-01-05 10:53 ggzone 阅读(229) 评论(0) 推荐(0)

摘要:su root认证失败:sudo passwd root,然后设置新密码。重装linux导致g++显示已安装,但无法使用:将”系统设置“/”软件源“中所有更新选项都去掉了,当然也就不能在线安装g++了!将系统更新选项重新打开,g++安装成功!安装fcitx输入法:系统设置--软件和更新--其它软件-... 阅读全文

posted @ 2014-07-29 17:13 ggzone 阅读(228) 评论(0) 推荐(0)