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,
Because CentOS python needs to be configured multiple times, simply write a script.
Use version: CentOS release 6.3 (Final). Other versions have not been tested.
One-statement installation (sudo or root required ):
[Plain] view plaincopy
Wget
1. Update yum Source
First you need to update the system's yum source, convenient tool: http://help.aliyun.com/manual? Spm = 0.0.0.0.zJ3dBU & helpId = 1692
2. Install vsftp
Use the yum command to install vsftp
# Yum install vsftpd-y
3. Add an ftp
(1) CGI scripts can also be used to create Web pages
CGI: Common Gateway Interface public Gateway Interface Protocol
On the httpd server, you can use CGI to create web pages.
CGI mechanism: Convert scripts to Client browsers to identify the
Windows provides a remote desktop system that allows users to remotely log on to the system for system management or run various applications as terminal servers. To connect to Windows Remote Desktop, install the appropriate software (tsclient) on
Outline
I. Installation
2. Start the NIC
3. Modify the Host Name (web.test.com)
4. Modify DNS (8.8.8.8)
5. Configure 163 yum Source
6. Disable SElinux
7. Disable the firewall (ipv4 and ipv6)
8. Install the VIM Editor
IX. Install MAN help
Use samba to allow linux to read files in windows Shared Folders
First, share a software Directory on a Windows machine and set the access permission for the directory. The IP address of the local Windows Server is 192.168.10.58.
Then
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
1. locate ---> searches for the database generated in advance, fuzzy searches, and updatedb updates the locate database.-I: Ignore the case sensitivity of file names.-N: show only the first n rows eg: locate-n3passwd2. find ----> real-time search,
View the parameters of some common services during compilation and installation:1. Nginx compilation and installation parameters[Root @ test ~] #/Usr/local/nginx/sbin/nginx-VNginx version: nginx/0.7.65Built by gcc 4.1.2 20080704 (Red Hat
How to install and upgrade an RPM package?Solution: to install an RPM package, you must have an RPM package for the software you want to install. You can download the appropriate RPM package from a website. Of course, the Red Hat Network provides
In our daily use, we may need to modify the YUM source for network reasons.One is to modify the network source, and the other is to modify the local source.Are:/etc/yum. repos. d/CentOS-Base.repo # network source Modification/Etc/yum. repos.
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 ~] #
Vi editor's text description mode: Command mode, edit mode, and last line mode. Switch Mode: Command mode → I → edit mode, edit mode → Esc → command mode, command mode →: → last line mode. Function: Command Mode: controls the movement of the cursor,
1. Modify the IP address of CentOSModify the configuration file of the corresponding Nic IP Address# Vi/etc/sysconfig/network-scripts/ifcfg-eth0Modify the following contentDEVICE = eth0 # describe the DEVICE alias for the NIC, for example, it is eth0
Before partitioning a hard disk, you should first figure out the work undertaken by the computer and the size of the hard disk, but also consider the following issues:The first and most important point is to know the current version of LILO, because
Use a CentOS Virtual Machine to provide NAT services.
Referring to the articles in howtoforge, the findings are not complex, but several basic concepts must be clarified. Otherwise, they will not be quite clear.
The most important step is:
Iptables -
In linux, we often use commands such as cd, grep, and vi. Sometimes we need to find the location of these commands. How can we do this?
In linux, there are two commands to complete this function: which, whereis
Which is used to view when
The path
When we use the CentOS system, problems may occur frequently in the time zone, and sometimes errors may occur after the change. Next we will learn a way to change this situation. If you are not using CentOS, run the yum install ntp command.Then:
For a long time, ext3 is the default file system of many linux distributions. Now ext4 has been released, in addition, some releases have started to use ext4 as the default file system (in fact, ext4 was initially used as the extension of ext3, but
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