导航

随笔分类 -  ubuntu

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

posted @ 2016-02-27 10:29 ggzone 阅读(250) 评论(0) 推荐(0) 编辑

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

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

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

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

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

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

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

posted @ 2016-01-10 11:47 ggzone 阅读(273) 评论(0) 推荐(0) 编辑

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

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

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

posted @ 2015-11-28 19:26 ggzone 阅读(114) 评论(0) 推荐(0) 编辑

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

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

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

posted @ 2015-11-13 21:02 ggzone 阅读(150) 评论(0) 推荐(0) 编辑

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

posted @ 2015-11-13 20:55 ggzone 阅读(175) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示