学以致用

focus on Python , C++, and some interest in Go and R

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

随笔分类 -  Linux相关

1 2 3 下一页

Linux related topics
摘要:when using Hugo encountered the following errors: hugo: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by hugo)hugo: /lib64/libst 阅读全文
posted @ 2021-08-26 16:21 Jerry.Kwan 阅读(943) 评论(0) 推荐(1)

摘要:Ubuntu server out of box is not optimized to make full use of available hardware. This means “out-of-box” setup might fail under high load. So we need 阅读全文
posted @ 2020-07-03 17:02 Jerry.Kwan 阅读(161) 评论(0) 推荐(0)

摘要:https://www.tummy.com/articles/isolating-heavy-load/ https://www.tecmint.com/understand-linux-load-averages-and-monitor-performance/ yum install sysst 阅读全文
posted @ 2019-05-26 14:02 Jerry.Kwan 阅读(144) 评论(0) 推荐(0)

摘要:see time wait number https://www.linux.org/threads/reduce-your-apache-time_wait-connections.4505/ 阅读全文
posted @ 2019-04-19 16:08 Jerry.Kwan 阅读(243) 评论(0) 推荐(0)

摘要:# install python3sudo yum -y updatesudo yum -y install yum-utilsyum install -y zlib-devel bzip2-devel ncurses-develyum install libffi-develsqlite-deve 阅读全文
posted @ 2019-04-08 16:45 Jerry.Kwan 阅读(215) 评论(0) 推荐(0)

摘要:以下配置只针对nsqadmin v1.1.0 (built w/go1.10.3)版本 ## The default server#server { listen 80 default_server; listen [::]:80 default_server; server_name _; roo 阅读全文
posted @ 2019-01-15 11:20 Jerry.Kwan 阅读(543) 评论(0) 推荐(0)

摘要:touch /etc/yum.repos.d/city-fan.repo vi /etc/yum.repos.d/city-fan.repo add the following: 阅读全文
posted @ 2019-01-08 16:59 Jerry.Kwan 阅读(286) 评论(0) 推荐(0)

摘要:yum -y updateyum -y install epel-releaseyum -y install ncftp screen # Compilers and related tools:yum groupinstall -y "development tools" # Libraries 阅读全文
posted @ 2018-09-27 16:26 Jerry.Kwan 阅读(216) 评论(0) 推荐(0)

摘要:# install TensorFlow GPU on CentOS 7.0# https://www.server-world.info/en/note?os=CentOS_7&p=tensorflow&f=2# https://docs.nvidia.com/cuda/cuda-installa 阅读全文
posted @ 2018-06-07 11:24 Jerry.Kwan 阅读(270) 评论(0) 推荐(0)

摘要:cat ~/.ssh/id_rsa.pub | ssh root@destination_server_address "cat >> ~/.ssh/authorized_keys" see also: https://www.liberiangeek.net/2014/07/enable-ssh- 阅读全文
posted @ 2018-05-08 15:16 Jerry.Kwan 阅读(220) 评论(0) 推荐(0)

摘要:sudo apt install python-minimal # python 2.7.xsudo apt install python-pip# https://www.ubuntuupdates.org/ppa/google_chromewget -q -O - https://dl-ssl. 阅读全文
posted @ 2017-08-21 22:34 Jerry.Kwan 阅读(314) 评论(0) 推荐(0)

摘要:ext4 disable journalAt one high loaded web project I needed a very fast file system. I decided to use Ext4 with disabled journal (As a google:))).# Cr... 阅读全文
posted @ 2015-12-14 09:46 Jerry.Kwan 阅读(897) 评论(0) 推荐(0)

摘要:linux下对进程按照内存使用情况进行排序的命令为:ps aux --sort -rss详细解说参见 http://alvinalexander.com/linux/unix-linux-process-memory-sort-ps-command-cpu 阅读全文
posted @ 2015-07-15 21:41 Jerry.Kwan 阅读(1508) 评论(0) 推荐(0)

摘要:在Ubuntu中安装软件的时候经常碰到E: Unable to correct problems, you have held broken packages.的错误,顾名思义是因为某些软件包冲突导致,幸运的话sudo apt-get update && sudo apt-get upgrade 可... 阅读全文
posted @ 2015-01-29 21:16 Jerry.Kwan 阅读(60942) 评论(5) 推荐(2)

摘要:在安装lxml时出现如下错误gcc: internal compiler error: Killed (program cc1)通过查看dmesg发现下述错误信息[2517343.500178] Out of memory: Kill process 5051 (cc1) score 632 or ... 阅读全文
posted @ 2015-01-12 10:41 Jerry.Kwan 阅读(3788) 评论(0) 推荐(0)

摘要:访问远程libvirtd服务因为是在一个可信环境中运行,所以可以忽略安全方面的操作,步骤如下:(1)更改libvirtd配置 1.1 更改/ect/sysconfig/libvirtd文件,打开LIBVIRTD_ARGS="--listen"设置 1.2 更改/etc/libvirt/libvirtd.conf listen_tls = 0 #关闭tls listen_tcp = 1 # 打开tcp tcp_port = "16509" # 侦听关口 listen_addr="0.0.0.0" # 侦听地址 auth_tcp = &q 阅读全文
posted @ 2013-12-20 16:53 Jerry.Kwan 阅读(670) 评论(0) 推荐(0)

摘要:将使用cx_freeze打包的python程序copy到别的机器上运行时碰到这样的错误:jerrykwan@jerrykwan:~/Downloads/exe.linux-x86_64-2.7$ ./server_family_info Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/cx_Freeze/initscripts/Console.py", line 27, in <module> File "server_family_info 阅读全文
posted @ 2013-04-03 16:42 Jerry.Kwan 阅读(17060) 评论(0) 推荐(1)

摘要:ubuntu server默认是没有GUI组件的,在个人使用的时候GUI有时又是不可或缺的组件,这个时候该怎么办呢其实很简单,如果机器能联网的话,只需简单的几个步骤就能完成ubuntu server安装GUI组件 sudo apt-get install ubuntu-desktop 需要注意的是,直接安装ubuntu-desktop有一个不好的地方,就是默认安装了一些ubuntu推荐的组件,比如LibreOffice等,占用资源不说关键是对于我们没啥太大作用,所以可以使用另外的命令进行安装, sudo aptitude install --without-recommends ubun... 阅读全文
posted @ 2013-01-31 14:00 Jerry.Kwan 阅读(927) 评论(0) 推荐(0)

摘要:需求:查找出通过系统包安装工具(apt-get或者yum)安装的包具体在哪一目录下?解决方案:以qemu-kvm为例进行说明(1)Ubuntudpkg -L qemu-kvm(2)CentOSrpm -ql qemu-kvm 阅读全文
posted @ 2013-01-08 13:10 Jerry.Kwan 阅读(276) 评论(0) 推荐(0)

摘要:要修改Ubuntu下的file descriptor的话,请参照一下步骤。(1)修改limits.conf $sudo vi /etc/security/limits.conf 增加一行 * - nofile 10000(2)修改 common-session $ sudo vi/etc/pam.d/common-session 增加一行 session required pam_limits.so操作完成后重启机器即可 阅读全文
posted @ 2013-01-04 11:34 Jerry.Kwan 阅读(409) 评论(0) 推荐(0)

1 2 3 下一页