1 Check the currently developed ports
#netstat-an
Suppose you found an unnecessary port of 631.
2 Find the port corresponding service
#lsof-I: 631
631 The corresponding service is CUPSD
3 View all Current services
#chkconfig –list
Found
To turn off the virtual machine firewall:
Close command: Service iptables stop
Permanently shutdown firewall: chkconfig iptables off
Two commands run at the same time, view firewall shutdown status after the run is completeService Iptables Status
1, with putty or other terminals to connect the CentOS system, Vi/etc/ssh/sshd_config, find #port 22
2, remove the #port 22 before the #, and then put the copy to the following, such as the 22nd port to 2020, modified as follows:
Port 22
Port 2020
It's easy to find files and directories in Linux
#已易读的格式显示指定目录或文件的大小, the-s option specifies the size of each subdirectory or file not shown in detail for the directoryDu-sh [Dirname|filename]Such as:The size of the current directory:
NFS is a network file system that allows multiple machines to share a file resource that accesses a single host.NFS may be used in the following situations:1. Multiple PCs share printers, CD-ROMs, and other resources using the same PC.2, multiple
This example describes the CentOS firewall usage. Share to everyone for your reference, specific as follows:
Shut down:
/etc/init.d/iptables stop
Open:
/etc/init.d/iptables start
Reboot:
/etc/init.d/iptables
In the project as a result of the company's local area network automatically obtain IP way, to each server restart host IP will change. In order to solve this problem, I refer to other articles and set up static IP according to their own situation
The example of this article describes the CentOS Simple Operation command and the Node.js installation method. Share to everyone for your reference, specific as follows:
To view the version of the CentOS kernel:
Uname-a
Uname-r
View
Installation Instructions
System Environment: CentOS-6.3
Installation mode: Yum Install (source code installation is easy to produce version compatibility problem)
Install software: The system automatically downloads SVN software
Check for
1, under the/etc/yum.repos.d/to establish Mariadb.repo, the contents are as follows:
Copy Code code as follows:
[Azureuser@mono etc]$ CD/ETC/YUM.REPOS.D
[Azureuser@mono yum.repos.d]$ VI Mariadb.repo
# MARIADB 10.0 CentOS
Under CENTOS6: RM-RF/has been blocked.Windows recover deleted files by mistake: Final data v2.0 and EasyrecoveryRemoval of files on CentOS ext4 file system can restore Extundelete (using range EXT4 and previous ext series file types)Extended:The
Because learning requires VMS to be installed, it is cumbersome to switch back and forth with Ctrl+alt with virtual machine operations. It's much more comfortable to use SSH to connect to terminal. However, if you do not shut down the firewall ssh
NetEase (163) Yum Source is one of the best yum sources in the country, both speed and software version is very good, the Yum source is set to 163yum, can increase the speed of package installation and update, while avoiding some common software
Solve the problem that the CentOS 7 history command does not display the operation record time and user identity.The history command in centos6 displays the operating Command time and user identity. [Root @ bdkyr ~] # History294 16:46:48 root clear29
I have been using CentOS 6 for a while, but I am not used to it. After the firewall is configured, run service iptables save to display "Failed to restart iptables. service: Unit iptables. service failed to load: No such file or directory. "Error.
Because the company's internal network needs to be tested, domain names are used to access the company's internal server. However, the vro does not have the domain name forwarding function. Therefore, the DNS method is used.Background:One internal
ElasticSearch overviewElasticSearch is a highly scalable open-source full-text search and analysis engine.It allows you to quickly store, search, and analyze large amounts of data. ElasticSearch is usually used as a backend program to provide
The current project uses GIT for version management, so it is appropriate to learn how to install GIT. This article describes how to compile and install git1.9.0. Although it is now 2.6.Run all the commands under root.Step 1: install the dependency
Well, if everything is okay, you should see the following picture on the screen after you start the instance with a DVD:Installation mode selection screen of the installer, default [F1] screen The above picture shows: You can directly press to
Method 1: CentOS5.9 vsftpd configuration1. Enter the following code in install_vsftpd.sh. The code is as follows:Copy code Echo "========================== install vsftpd ======== ====================================="Yum-y remove vsftpdYum-y
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.