
系统维护
文章平均质量分 70
ppdouble
这个作者很懒,什么都没留下…
展开
-
fedora使用笔記 gnome-shell-3.8.3-3.fc19 has been pushed to the Fedora 19 stable repository.
Process /usr/bin/gnome-shell was killed by signal 5 (SIGTRAP) gnome-shell-3.8.3-3.fc19 has been pushed to the Fedora 19 stable repository.解决方法:安装3.8.3-3的x86_64版本,没有解决,仍然报告gnome-shell-3.8.3-2.fc19错原创 2013-12-31 11:00:02 · 1468 阅读 · 0 评论 -
gitlab 7.4.5 nginx apache 配置
gitlab 7.4.5 从源码安装分别使用 nginx 和 apache 的配置原创 2016-03-10 01:12:35 · 1547 阅读 · 1 评论 -
Shell使用笔记-交互提示信息
开启 Linux 下 rm cp 不提示 和 禁用提示原创 2014-01-03 19:36:02 · 914 阅读 · 0 评论 -
fedora23添加GUI桌面快捷方式
下载的ECLIPSE直接解压可以用,没有GUI快捷方式,启动不方便。参照 smartsvn带的脚本,稍微改动一下添加成功原创 2016-08-08 11:32:43 · 1302 阅读 · 0 评论 -
centos6使用c++11
CentOS 6.4 使用C++11,需要安装 devtools2原创 2016-10-22 19:32:26 · 14341 阅读 · 4 评论 -
centos 使用网络管理命令注意事项
centos 6.4 x64 一直在gui环境下用,默认启动时 网卡 eth0 是被禁用的,登录后要手动点击激,然后切换到字符界面下使用 ifup 和 network start 均不能启动网卡,有错误:failed: This device is not active原创 2016-10-26 20:27:30 · 466 阅读 · 0 评论 -
三种方式记录bash输出的内容
记录bash输出的内容不仅包括命令,以便操作完回顾 1.screen 2.script 3.tee原创 2016-10-27 22:10:11 · 2567 阅读 · 0 评论 -
windows7下GPT的属性设置
windows7下GPT的属性设置原创 2016-10-07 01:06:56 · 1078 阅读 · 0 评论 -
mail mailx 发送邮件 163 gmail 阿里云
mail mailx 发送邮件centos 7 x64在这个系统中 mail 是 mailx 的一个符号链接,所以是一样的。配置文件在 /etc/mail.rc 也可以在用户主目录下创建 ~/.mailrc对当前用户优先使用 ~/.mailrc连接原创 2017-02-28 15:15:03 · 2962 阅读 · 0 评论 -
centos6.7 x64搭建tmate server
centos6.7 x64搭建tmate server原创 2017-01-26 22:45:49 · 881 阅读 · 0 评论 -
centos 7 配置防火墙 firewalld
centos 7 x64 装了 neo4j 想用其它机器访问,无奈一直被拒绝,后来发现是防火墙启用了。systemctl status firewalld可以查看防火墙状态。centos 7 配置防火墙 firewalld原创 2017-03-18 01:03:37 · 581 阅读 · 0 评论 -
neo4j 启动脚本 centos 7 x64
centos 7 x64, neo4j 3.1.2 community 下载的 neo4j 默认不带启动脚本,neo4j文档只给了几个示例教程链接。其中源码里有打包用的链接示例 neo4j.service 3.1, neo4j.init 3.1对照写出脚本:原创 2017-03-25 01:32:42 · 3084 阅读 · 0 评论 -
mac osx 查看运行中的程序所在路径
黑苹果惹的祸。EDUP USB无线网卡的管理工具不响应了。找不到它的安装位置,不知道从哪里重新打开。于是有了这个需求。幸好监视器还能看到 PID。思路是使用 lsof 命令查看程序的打开文件。剩下的就是字符串处理了。代码示例:lsof -a -p 1584 -d txt -Fn | cut -c2- | grep -E "(\S|\w|\s)*\.app(\S|\w|\s)*\.[a-zA-...原创 2019-03-09 15:43:23 · 9486 阅读 · 0 评论 -
AppImage 使用技巧 - 打开AppImage替换库文件
打开AppImage包替换库文件, 修改图标或者图形快捷方式等, 再进行重新打包运行.原创 2019-05-06 20:44:39 · 11572 阅读 · 0 评论 -
gitlab 7.4.5 relative url configuration
gitlab 7.4.5 没有对应的 gitlab-git-http-server(gitlab-horse),但是文档里提供了使用 relative_url 的方法。 目标访问方法:www.mydomain.com 访问默认的主目录页面,比如我自己的 blog www.mydomain.com/gitlab 访问 gitlab原创 2016-03-09 18:06:10 · 1740 阅读 · 0 评论 -
设置阿里云ECS的swap
安装 gitlab 时碰到的问题。中间出现几次内存分配的问题,其中添加 ssh key 导致 500 错误,我 1G 内存跑了apache nginx mysql,以为内存不够用,确实不够用。找了好多,提到减少 unicorn.rb 里的 worker_processes 节省内存,后又有文章提到没有swap。我才想到阿里云有可能没有swap,搜一下果然没有。我这里总结一下参考的文章所进行的操原创 2016-03-04 21:02:11 · 2205 阅读 · 0 评论 -
Windows配置MySQL和程序
环境:Windows7 64使用MySQL的VC程序原创 2014-08-24 20:36:56 · 907 阅读 · 1 评论 -
cron 使用笔记
crontab 相对路径切换到相应目录cd $(dirname $0)http://blog.enkitec.com/2011/05/make-bash-scripts-crontab-compatible/http://stackoverflow.com/questions/8899737/crontab-run-in-directory使用crontab 运行sh脚原创 2013-12-30 19:18:10 · 923 阅读 · 1 评论 -
抽取rpm源码包
Extracting rpm file commandTo be frank there is no direct option available for rpm command to extract an RPM file. But there is a small nifty utility available called rpm2cpio. It rxtract cpio a转载 2013-12-26 18:21:51 · 819 阅读 · 0 评论 -
Selinux_Apache
Sometimes we want Apache to listen on a port other than the default 80. To achieve this on a Fedora box, one needs to modify its configuration file /etc/httpd/conf/httpd.conf. Change the port number o转载 2014-03-07 18:28:29 · 772 阅读 · 0 评论 -
Windows无密码传文件至Linux-pscp
用Cygwin或者GitBash所带的ssh-keygen和scp等命令,可以正常生成key,但是会有权限问题。经测试总是出现私钥644错误,建议私钥600,.ssh目录700。网上各种用chown修改文件属主,chmod修改文件权限,可以执行成功,但都没有效果,比如chmod600后,再查看文件属性,仍然为-rw-r---r--,还是644。总有其它用户可读。不知道如果windows原创 2014-03-20 15:50:21 · 5766 阅读 · 0 评论 -
linux架设时间服务器
参照:http://www.blogjava.net/vjame/archive/2011/03/17/346503.html转载 2014-04-04 13:34:07 · 965 阅读 · 0 评论 -
sc命令行添加windows服务
命令行添加windows服务http://support.microsoft.com/kb/251192转载 2014-04-03 15:10:53 · 1347 阅读 · 0 评论 -
plink从windows向linux远程无密码执行命令
plink -P 22 -i %USERPROFILE%\.ssh\pg_rsa.ppk root@192.168.**.** cd %JENKINS_HOME%/workspace/;rm -rf %JOB_NAME%;mkdir %JOB_NAME%-P 端口号参考:原创 2014-04-08 19:16:07 · 6643 阅读 · 2 评论 -
命令行执行不回显不提示
windowscopy /Yrmdir /S /Q----linux\rm\cp##### UPDATE最新的 fedora29 x86_64 上测试:\rm 和 \cp 对于没有可写权限件依然分别回显提示写保护和没有写权限. 方法有:1. rm -f 和 cp -f 强制删除和复制覆盖目标文件2. yes | rm target.file ...原创 2014-04-28 18:57:54 · 3151 阅读 · 4 评论 -
python的urllib2不使用系统默认代理
proxy = urllib2.ProxyHandler({}) # Pass empty dictionary to bypass proxyopener = urllib2.build_opener(proxy)urllib2.install_opener(opener)原创 2014-05-22 11:57:22 · 3137 阅读 · 0 评论 -
scp无交互方式
scpscp -o StrictHostKeyChecking=no -i .ssh/id_rsa mc.zip root@192.168.9.54原创 2014-05-22 14:25:47 · 5894 阅读 · 0 评论 -
MAC终端配色
http://geoff.greer.fm/lscolors/转载 2014-06-11 14:58:17 · 1944 阅读 · 0 评论 -
Django的app中使用Celery的Crontab定时执行任务
1在项目的celery中写tasks 2在项目的celery import 相应的module,相当于在项目的celery中写了相应的task import apps.app1.tuan 3使用autodiscover 但是app目录必须使用tasks.py,apps/app1/tasks.py 否则找不到 4在settings.py中设置CELERY_IMPORTS = ('apps.app1.原创 2014-06-20 16:02:14 · 6209 阅读 · 0 评论 -
pip 在MAC上安装库错误clang: error: unknown argument
Projects using invalid compiler options will need to be changed to remove those options. To help ease that transition, the compiler will temporarily accept an option to downgrade the error to a warnin原创 2014-06-10 15:20:04 · 2275 阅读 · 0 评论 -
openssl使用SMTP向gmail发送邮件
使用openssl和SMTP在命令行向gmail发送邮件原创 2014-01-21 13:53:11 · 11034 阅读 · 0 评论 -
shell_wget自动下载脚本
使用goagent代理,并断点续传,原创 2014-11-13 21:45:13 · 5023 阅读 · 4 评论 -
root 用户被禁止登录的 Login incorrect 的问题
环境:CentOS 6.10我这里主要原因是被 pam_securetty 给禁止掉了. 主要是禁止从 tty3 登录./var/log/secure 中的记录为:Jul 18 13:49:29 localhost login: pam_securetty(login:auth): access denied: tty 'tty3' is not secure !Jul 18 13:49...原创 2019-07-19 19:23:46 · 13609 阅读 · 3 评论