
CentOS
文章平均质量分 67
zhanglizhuo
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Python多进程共享全局变量
解决Python多进程变量共享问题原创 2022-10-12 10:45:57 · 4500 阅读 · 0 评论 -
Linux下只允许用户远程scp
本文将介绍在Linux环境下,让用户不能远程登录 只能使用scp命令原创 2022-09-30 15:44:13 · 521 阅读 · 1 评论 -
Our List of the Essential Linux Apps
ProductivitySynapseWe love app launchers and the speed they bring to our workflow, and they can doa lot more than just launch apps. Unfortunately, app launchers are in a weird spot in the Li转载 2014-12-28 10:31:33 · 278 阅读 · 0 评论 -
Netcat – a couple of useful examples
One of the Linux command line tools I had initially under-estimated is netcat or just nc. By default, netcat creates a TCP socket either in listening mode (server socket) or a socket that is used in转载 2014-12-28 11:44:06 · 169 阅读 · 0 评论 -
Using cURL to automate HTTP jobs
Using cURL to automate HTTP jobs Related:curl man pageManualFAQHTTP Scripting1.1 Background1.2 The HTTP Protocol1.3 See the Protocol1.4 See the Timing1.5 See the ResponseURL2转载 2014-12-29 10:47:17 · 313 阅读 · 0 评论 -
Output a dot every second.(Interview a student)
#include #include int main(void){ while(1) { printf("."); fflush(stdout); sleep(1); } return 0;}原创 2014-12-29 15:33:51 · 135 阅读 · 0 评论 -
ffmpeg and ffserver user guide
ffmpegand ffserver user guide1.Installation1)、安装git。在命令行下运行$sudoapt-get install git-core2)、下载最新版本的ffmpeg$gitclone git://source.ffmpeg.org/ffmpeg.git ffmpeg3)、进入ffmpeg目录下,原创 2014-12-10 16:10:40 · 391 阅读 · 0 评论 -
10 Useful Sar Examples for Linux Performance Monitoring
Using sar you can monitor performance of various Linux subsystems (CPU, Memory, I/O..) in real time.Using sar, you can also collect all performance data on an on-going basis, store them, and do hist转载 2015-01-19 09:29:09 · 165 阅读 · 0 评论 -
Installing tmux on CentOS 6.2
If you haven’t used tmux, you should probably give it a try. It is an elegant and full featured terminal multiplexer similar toGNU Screen.If life were easy you would simply fire up yum and instal转载 2014-12-30 11:59:58 · 147 阅读 · 0 评论 -
Getting Started with Docker
Docker is an open-source project that makes creating and managing Linux containers really easy. Containers are like extremely lightweight VMs – they allow code to run in isolation from other container转载 2014-12-28 11:46:41 · 930 阅读 · 0 评论 -
Examples for using socat
// Examples for using socat (and filan)//"$" means normal user, "#" requires privileges, "//" starts a comment///////////////////////////////////////////////////////////////////////////////// si转载 2014-12-28 11:38:06 · 216 阅读 · 0 评论 -
linux screen 命令详解
一、背景系统管理员经常需要SSH 或者telent 远程登录到Linux 服务器,经常运行一些需要很长时间才能完成的任务,比如系统备份、ftp 传输等等。通常情况下我们都是为每一个这样的任务开一个远程终端窗口,因为它们执行的时间太长了。必须等待它们执行完毕,在此期间不能关掉窗口或者断开连接,否则这个任务就会被杀掉,一切半途而废了。二、简介GNU Screen是一款由GNU计划开发的用于转载 2014-12-28 09:47:06 · 133 阅读 · 0 评论 -
curl vs Wget
curl vs Wget This document started off as a blogentry, but I decided that I should better make a permanent home for thisas I'm sure I'll get reasons to update and fix this as time goes by.The转载 2014-12-29 10:44:41 · 272 阅读 · 0 评论 -
How to install PHP on CentOS
PHP PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML. For more information on PHP, visit their website at转载 2014-12-26 19:41:44 · 219 阅读 · 0 评论 -
curl command
curl 是Linux下一个强大的http命令行工具。使用例子如下:1 输出到屏幕curl http://www.google.com2 输出到文件curl -o google.pnghttp://www.google.com.hk/intl/zh-CN/images/logo_cn.png3 输出到文件,并使用与服务器相同的文件名curl-O http://www.g转载 2014-12-29 10:49:05 · 586 阅读 · 0 评论 -
Docker - copy file between container and host
1. Copy file from container to hostdocker cp :/file/path/within/container /host/path/targetExample:$ sudo docker cp 8af19f753c85:/etc/network/interfaces .2. Copy file from host to原创 2015-01-11 10:12:33 · 322 阅读 · 0 评论 -
SSH login failed due to version mismatch
In the afternoon, we tried to setup a reverse ssh tunnel from surveillance room to server room.But after we typed in the command, we get no response from the server.From the captured packet of wi原创 2015-01-16 22:40:30 · 518 阅读 · 0 评论 -
Yum equivalent to apt-get build-dep and apt-file search
[ apt-get build-dep ]apt-get build-dep command installs required packages to build a package from a source code.apt-get build-depbuild-dep source_pkgCauses apt-get to install/r转载 2015-01-16 22:01:36 · 194 阅读 · 0 评论 -
Useful netcat examples on Linux
Often referred to as the "swiss army of knife" for TCP/IP networking, Netcat is an extremely versatile Linux utility that allows you to do anything under the sun using TCP/UDP sockets. It is one o转载 2014-12-28 11:41:06 · 183 阅读 · 0 评论 -
Open Onvif Installation Guide
Goal:Camera Discovery and Streaming RetrievalOpenOnvifInstallation GuideStep:1.获取OpenOnvif源代码gitclonehttps://github.com/sigrand/OpenONVIF.git2.安装gsoap,要求版本2.8.15及以上http://c原创 2014-12-10 16:15:24 · 477 阅读 · 0 评论 -
15 Practical Linux Top Command Examples
This article is part of the on-going 15 example series where 15 examples will be provided for a specific command or functionality. In this series, earlier we discussed aboutfind command, crontab转载 2015-01-19 09:34:01 · 215 阅读 · 0 评论 -
18 commands to monitor network bandwidth on Linux server
Network monitoring on LinuxThis post mentions some linux command line tools that can be used to monitor the network usage. These tools monitor the traffic flowing through network interfaces and meas转载 2015-01-17 16:41:32 · 388 阅读 · 0 评论 -
Simple operation of tmux copy mode
1. Enter copy modectrl+b [2. Start select textctrl+@ or ctrl+space or space3. End select and copyalt+w or enter4. Pastectrl+b ]原创 2015-01-05 22:50:25 · 182 阅读 · 0 评论 -
tmux installation on CentOS
1. remove old version libevent$sudo yum remove libevent* 2. compile and install new version libevent$wget https://codeload.github.com/libevent/libevent/tar.gz/release-2.0.21-stable$tar原创 2015-01-05 20:39:51 · 216 阅读 · 0 评论 -
The Best Linux Distros
General UseUbuntu/Kubuntu/etcOne of the most popular general-use distributions with one of the largest selections of software. Based on: Debian FedoraThe most cutting-edge general-use di转载 2015-01-05 20:04:19 · 513 阅读 · 0 评论 -
The Best Linux Distributions For Windows XP Refugees
Are you a Windows XP user needing to upgrade your operating system? Do you dislike the idea of Windows 8, or are you hesitant to spend any money? For many people, installing a Linux operating system o转载 2015-01-05 20:02:24 · 331 阅读 · 0 评论 -
Using minicom to interface with serial devices on Linux
I came across a problem recently, I needed to configure a Cisco switch and all I had was a Ubuntu machine that had a serial port. Since then I've got a Cisco 2511, with octal cable, which is very hand转载 2015-01-03 15:47:57 · 215 阅读 · 0 评论 -
5 Linux / Unix Commands For Connecting To The Serial Console
Most embedded Linux / BSD systems such as routers, servers and nas devices comes with console interface (serial port with RS-232). BIOS can uses this, and after boot BIOS screen I/O is redirected so t转载 2015-01-03 15:43:11 · 285 阅读 · 0 评论 -
Linux / Unix: chroot Command Examples
am a new Linux and Unix user. How do I change the root directory of a command? How do I change the root directory of a process such as web-server using a chroot command to isolate file system? How do转载 2015-01-03 11:01:38 · 190 阅读 · 0 评论 -
Using "chroot" to reset a password of a linux machine
I tried to explain what "chrooting" is to a group of starting Linux gurus. It seemed rather difficult to explain. So, maybe an illustrated article will explain what chroot is.From chroot's manpage:转载 2015-01-03 10:58:05 · 168 阅读 · 0 评论 -
Linux: List All Environment Variables Command
How do I display all my environment variables using bash shell on RHEL / Debian / Ubuntu / CentOS / Fedora / Mint Linux operating systems?You can use any one of the following command to display th转载 2015-01-03 16:02:49 · 444 阅读 · 0 评论 -
UNIX tools for exploring object files
The modern art of computer programming combines a special kind of human personality with a special set of tools to produce a rather ghostly product -- software -- that other human beings find useful.转载 2015-01-20 08:00:14 · 193 阅读 · 0 评论 -
disown Command Examples
I am a new Linux and Unix shell user. How do I Remove or delete jobs from current bash / ksh or POSIX based shell?Job control is nothing but the ability to stop/suspend the execution of processes转载 2015-01-19 23:26:59 · 220 阅读 · 0 评论 -
Top 10 Linux Easter Eggs
Often, when you log into your Linux VPS, you are looking to get some work done. However, no one can claim that the thousands of developers who create the software available on a typical Linux machine转载 2015-01-19 22:06:32 · 442 阅读 · 0 评论 -
Linux 使用ss命令代替 netstat
ss是Socket Statistics的缩写。 顾名思义,ss命令可以用来获取socket统计信息,它可以显示和netstat类似的内容。但ss的优势在于它能够显示更多更详细的有关TCP和连接状态的信息,而且比netstat更快速更高效。【和netstat说再见的原因】 当服务器的socket连接数量变得非常大时,无论是使用netstat命令还是直接cat /proc/net/t转载 2014-12-31 16:47:25 · 194 阅读 · 0 评论 -
UNIX tools for exploring object files
The modern art of computer programming combines a special kind of human personality with a special set of tools to produce a rather ghostly product -- software -- that other human beings find useful.转载 2015-01-19 23:16:28 · 248 阅读 · 0 评论 -
Top 25 Best Linux Performance Monitoring and Debugging Tools
I’ve compiled 25 performance monitoring and debugging tools that will be helpful when you are working on Linux environment. This list is not comprehensive or authoritative by any means.However this转载 2015-01-19 09:41:02 · 247 阅读 · 0 评论 -
SSH Tunnel - Local and Remote Port Forwarding Explained With Examples
There are two ways to create an SSH tunnel, local and remote portforwarding (there’s also dynamic forwarding, but we won’t cover thathere). The best way to understand these is by an example, let’s sta转载 2014-12-31 15:41:50 · 427 阅读 · 0 评论 -
Centos安装使用配置tmux
CentOS安装支持组件:1yum installlibevent-devel ncurses-devel安装tmux:123456wget http://downloads.sourceforge.net/tmux/tmux-1.6.tar.gzta转载 2014-12-30 14:17:44 · 251 阅读 · 0 评论 -
10 Xargs Command Examples in Linux / UNIX
The xargs command is extremely useful when we combine it with other commands.This tutorials explains the usage of xargs command using few simple examples. These example will help you understand th转载 2014-12-26 23:38:33 · 197 阅读 · 0 评论