Create a swap partition using the DD command[Root@localhost Desktop] #dd if=/dev/zero of=/home/swap bs=1024 count=1048576Calculated formula for Count: count=size*1024 (SIZE in MB)This creates a/home/swap partition file with a size of 1G, and then
CentOS is stuck on the progress bar when the boot is on.
This does not see the boot boot card where, had to restart and hold the "E" key to enter the boot menu:
Then press E to edit the first item:
Then move to the second item kernel ...
First, what is Iftop?
Iftop is a real-time traffic monitoring tool similar to top.Official website: http://www.ex-parrot.com/~pdw/iftop/
Second, what is the use of iftop?
Iftop can be used to monitor the real-time traffic of the network card (you
———————————————. tarUnpack: Tar xvf Filename.tarPacking: Tar cvf filename.tar dirname(Note: Tar is packed, not compressed!) )———————————————. gzDecompression 1:gunzip filename.gzDecompression 2:gzip-d filename.gzCompression: gzip FileName. tar.gz
IPV6 Fire-enabled
Service Ip6tables Start
Set boot up
Chkconfig--level 2345 Ip6tables on
Check the default gateway address:
Ip-6 Route
2001:288:82b2:1:209:fff:fe85:f71e
Network Related Settings
Vi/etc/hosts
2001:288:82b2:1::77 w2.ipv6.shsps.
Checking user logon Records
More/var/log/secureWho/var/log/wtmp
Check System daemon
Check/etc/inetd.conf file, input: cat/etc/inetd.conf | Grep–v "^#", the output information is the remote service that your machine opens.
A general intruder can
Suppose that the NIC that needs to bind multiple IP is eth0, please create a file named ifcfg-eth0:0 in the/etc/sysconfig/network-scripts directory.
Examples of the content are:Device= "eth0:0"Nm_controlled= "Yes"onboot= "Yes"Ipaddr= "112.100.103.16
In order to implement the front end using the Apache processing page, the backend uses JBoss or tomcat processing logic, we need to install the MOD_JK module for the httpd.
The operation is as follows:
1, download the latest Apache Tomcat
Cloudera Hadoop CDH 5.2.3 and Cent OS 6.6 are used for this installation. The installation process is very unprofessional. For record only, do not refer.I. Preparations before installation1. Update the systemYum update2. Install JDKA. Download and
#! /Bin/bash# Author: sherwin# Version: v1.1# Author blog: http://blog.rocnic.com# Email: blog@rocnic.com# Description: This script is the maximum service optimization for CentOS servers and does not apply to all servers. Please increase or decrease
1. Use chkconfig to configure the startup levelIn other CentOS or RedHat systems, if services are installed later, such as httpd, mysqld, and postfix, the system will not start automatically after installation. Even if you manually run/etc/init.
The system prompts a segment error (core dumped) during yum install or yum update today, and then stops running. The code is as follows:Copy code [Root @ lee ~] # Yum-y updateLoaded plugins: fastestmirror, refresh-packagekitDetermining fastest
Configuration environment:Server version: centos 6.4x86Pptpd version: pptpd v1.401. Introduction to vpnVpn is called virtual private network. The technology is simple, that is, setting up a private network in the public network and setting up a VPN
Install vsftp serverRun the rpm-q vsftpd command to check whether this service is installed. If yes, the vsftp version is displayed. If no version is installed, the system prompts "package vsftpd is not installed ". Run the "yum-y install vsftpd"
1. Modify the s h PortThe default s h port of VPS is 22. To prevent MJJ from scanning the port to crack the password, it is necessary to change the ssh port to another number.Now, log on to the VPS through SSH and modify the configuration
Use bridge ModeSelect the bridging network card when bridgingSet centos static IP addressTwo configuration files are involved:/etc/sysconfig/network-scripts/ifcfg-eth1First, modify/etc/sysconfig/network as follows: add GATEWAY = 192.168.0.1. Gateway
Compile and install node. jsWget http://nodejs.org/dist/v0.8.5/node-v0.8.5.tar.gzTar zvxf node-v0.8.5.tar.gzCd node-v0.8.5./ConfigureMake & make installModify the wget version by yourself.Run the yum command to installYum install
Here I have a new general user named 361way, which can be promoted to root as follows:Method 1: modify the/etc/sudoers file, find the following line, and remove the comment (#).# Allows people in group wheel to run all commands% Wheel ALL = (ALL)
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.