Recently, the company developed software projects and shared documents of the entire team are stored in a unified manner to facilitate development. Therefore, we have built a samba file server. Below we record the simple steps for future reference,
1. Install the samba service in CentOS6.3Yum-y install smaba2. Edit the samba configuration fileVi/etc/samba/smb. conf
vi /etc/samba/smb.conf
1) Change the user group
Workgroup = WORKGROUP
workgroup = WORKGROUP
2) authorized IP addresses
Hostsallow
There are many friends who talk about RPM compilation and installation. RPM installation is a dumb installation.In fact, RPM is a very effective centralized deployment solution.Yum + RPM is a fast and convenient large-scale deployment solution.The
In linux, we often encounter the i386 i686 istmi586 code, such as viewing the kernel version:
[Root @ localhost logs] # uname-Linux localhost. localdomain 2.6.18-164. el5PAE #1 SMP Thu Sep 3 04:10:44 EDT 2009 i686 i686 i386 GNU/LinuxYou have new
Take LINUX REDHAT6.3 as an example:
Insert REDHAT6.3 System ISO image CD1 to the Local Machine
1. Configure the local installation source of yum:
Log on to the system as a root user
Mkdir/mnt/cdrom
Mount-t iso9660/dev/sr0/mnt/cdrom
Cd/etc/yum.
1. elinks-Dump is displayed as textEg: elinks-dumphttp: // www.google.cn-Source is displayed as source codeEg: elinks-sourcehttp: // www.google.cn2. wget download-- Tries = 10 download attempts-O stores the connection in a file.-R: Enable recursive
Why do I need to enable Gzip?
A: After Gzip is enabled, the data output to the user's browser will be compressed to reduce the amount of data transmitted over the network and increase the browsing speed.
How to enable Gzip?
1. First find the httpd.
The linux system is installed unattended on Pxe. It can automatically manage multiple machines at the same time, reducing the workload of administrators and making management more scientific and effective. Therefore, pxe unattended linux
In the DOS era, the command to list directories is dir and the command to clear the screen is cls.
Similar commands in Linux areLs andClear. If you are not used to it, use the same command as an alias:
[Blackrose @ localhost ~] $ Alias dir = 'LS-l'
Judgment basis:1. The cpu with the same core id is hyper-threading of the same core.2. A cpu with the same physical id is a thread or cores encapsulated by the same cpu.
Taking HP dlw.g6 as an example:
① Number of physical CPUs:[Root @ localhost ~]
1 shiftwidth
This is the blank length indication used for automatic indentation in the program. In general, to keep the program beautiful, it is best to be consistent with the following parameters. It is also the setter of the symbol shift length.2
You can use chattr to set the permission to hide an object. Use lsattr to display the hidden permissions of an object. Chattr [+-=] [ASacdistu] [file or directory name]Parameter description:+-=: "+" (ADD), "-" (reduce), and "=" (SET) respectively.A:
Port 3306 must be opened in the firewall configuration file when the script is automatically installed today.
Sed-I
Insert a new row before a row containing a specific string
Sed-I '/specific string/I new line string'
Example:
[Root @ www ~] #
Log on to the Centos server remotely using SSH and perform the following operations:Reminder: data is cleared during the mounting operation. Make sure the mounting disk has no data or is not in use.
Step 1: List unmounted disks. Command: fdisk-lTip:
Create a RAID0 with a size of 10 GB1. Create two shards for RAID 0
Use/dev/sde1/and dev/sdf1 to create a partition. The partition capacity is 5 GB, And the partition is converted to fd.
123 # fdisk/dev/sde # fdisk/dev/sdf # fdisk-l/dev/sd {e,
If you have a 12 million gb csv file, there are more than records and each record has 50 columns. What you need to do now is to add all the values in a column. What do you do?
This is the beginning of a recent article. This article describes how to
1. Introduction to important log files in Linux
/Var/log/boot. log
This file records the system events during the boot process, that is, the information displayed during the Linux system boot self-check process, as shown in 1:
Figure 1/var/log/boot.
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