Linux message sequence (inter-process communication)

Linux message sequence (inter-process communication) [cpp] # include # include # include # include # include # include # include # include www.2cto.com // The Message Queue structure struct msgStuct {long int msgType; char strMsg [1024] ;};

Ubuntu 12.04 64-bit install glusterfs 3.3.0 configure replica

Ubuntu 12.04 64-bit installation of glusterfs 3.3.0 to configure replica requires two servers as the gluster replication server, add vim/etc/hosts server110.10.10.10.10.11 server2 cat/etc/hosts 127.0.0.1 localhost10.10.10.10 then to the sudo-s

Ubuntu KVM host network problems

Ubuntu KVM host network problems received an article: http://www.bkjia.com/ OS /201209/157166.html vacation back, continue to install KVM virtual machine. Suddenly, the host machine cannot be connected to the Internet. Finally found a solution in

Linux memory management commands

The linux memory management commands vmstat-s and free-m are good memory observation commands www.2cto.com. The system is just running-bash-3.2 $ vmstat-s 30897940 total memory 184408 used memory 78848 active memory 67432 inactive memory 30713532

Add read-only users in linux

USER = onlyread 02 chattr-I/etc/passwd/etc/shadow/etc/group 03 ln-s/bin/bash/bin/rbash 04 echo/bin/rbash>/etc/shells 05 useradd-c "A Restricted User"-s/bin/rbash $ USER 06 rm-rf/home/$ USER /\.* 07 echo "export PATH =/home/$ USER/bin">/home/$

Find open-jdk's src.zip in ubuntu.com

Ubuntu finds open-jdk's src.zip. When we use sun's JDK, the root directory contains a src.zip to view the source code of the system class library. When www.2cto.com is using open-jdk, the directory structure has changed and cannot be found for a

Modify startup memory size in Linux

Linux system modifies the startup memory size. The server memory is too large. It takes twice the memory size to perform an I/O test. Modify the startup memory size to reduce the test time! Www.2cto.com 1. # vi/boot/grub. conf kernel/vmlinuz-2.6.32-2

System () functions in linux

In linux, the system () function is going to review the linux File system today and find many things. When I was watching www.2cto.com today, I suddenly remembered that a friend once said how to open a terminal by executing a C program. In fact, it

ESXI4.1 adjust the disk size for linux virtual machines

ESXI4.1 adjust the disk size for linux virtual machines first, adjust the disk size to 60 GB www.2cto.com. Note: if you cannot adjust the disk size for a snapshot of a virtual machine, you must delete the snapshot before adjusting the disk

Set JNDI resources for Tomcat

The Web application descriptor file (/WEB-INF/web. xml) can be used to set the creation and reference of resources.There are three elements used for setting:L L L If Tomcat cannot identify the appropriate resource factory, or you need to set other

Corresponds to the linux snmp oid

For linux snmp oid, you can modify the corresponding oid information in linux by modifying vi/etc/snmp/snmpd. conf view systemview embedded ded. 1.3.6.1 changed to www.2cto.com view systemview encoded ded. 1.3.6.1.2.1.1 at the beginning, right? The

Publish a javaweb project in Tomcat

First, set the project Export -- war package to be released. 1. The simplest way is to directly throw it to tomcat. The specific path is $ {TOMCAT_HOME}/webapps. tomcat will automatically decompress the war File 2. But the same name cannot be

Ubuntu Network Configuration

Ubuntu network configuration 1. dhcp automatically obtains IP address editing/etc/network/interfaces www.2cto.com auto lo # enable The auto lo interface iface lo inet loopback # configure The lo interface as The loopback port # The primary network

Centos 5 System Service Optimization

After the centos installation is minimized, many servers are enabled by default, which is useless for running the servers. Generally, they are disabled. Minimum installation I prefer to select the following package groupsAdministration Tools

Deploy the Nginx + Passenger environment on Ubuntu 10.10

Download the latest REE installation package from the Ruby EE website (select Ubuntu) Run the installer. REE will be automatically installed. Run the command line to ensure the installation is successful. Ruby-v Run the following command to

Install metasploit on UBUNTU Server

$ Sudo apt-get install ruby libopenssl-ruby libyaml-ruby libdl-ruby libiconv-ruby libreadline-ruby irb ri rubygemsInstalling ruby requires poor network speed.You can reinstall the system after installing 1.9. Install the Subversion client: $ sudo

Use shell to automatically install and deploy Nagios

#! /Bin/sh# This script is auto_nagios# Version 1.0.0# Copyright (c) zhaohaihua zhaohha@ufida.com.cnExport install_dir = "/usr/src/pack_nagios"Dir = 'pwd'Tar zxf $ dir/pack_nagios.tar.gz-C/usr/srcLogin_nagios_user = chanjetFetion_id = 1,

Remotely restore the root password of an esx Server

There was a machine. Today, I found that I didn't open a firewall, and it actually belonged to me, Khan. I found no password or record. I don't want to remotely reinstall it. I am worried that the data on several virtual machines running above may

Object-oriented Shell scripts

Do you still remember the regular expression that used to calculate prime numbers? The world of programming is so interesting that you will always be able to see something special. Have you ever thought that you can put your variables and functions

References in shell

  Quotes in shell 1. Double quotation marks $, ', \, Retain special meaning Note that escape characters such as \ n are not supported by default when echo is not added. Supported by printf [Root @ Centos5 test] # echo "\ n" \ N [Root @ Centos5 test]

Total Pages: 5467 1 .... 5446 5447 5448 5449 5450 .... 5467 Go to: GO

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.