CentOS modifies the server system time and centos modifies the server
After linux is installed, it is generally a foreign world. It is not convenient to set tasks at all, or the website gets local time out of order. Therefore, you need to change the server time to the same as the local time, that is, the time for changing to China.
First Command: date-s '2017-10-31 10:10:10 'Second command: clock-w // wri
Build xl2tp server in CentOS 7.2 and build xl2tp in CentOS
# Download the xl2tpd.tar.gz source code package
'''Wget http://pkgs.fedoraproject.org/repo/pkgs/xl2tpd/xl2tpd-1.3.8.tar.gz/d244fdcd88f64601b64b7302870afca8/xl2tpd-1.3.8.tar.gz'''
#2. Install xl2tpd and libreswan
'''Tar-zxvf xl2tpd-1.3.8.tar.gzCd xl2tpd-1.3.8Make make installIf "contrib/pfc. c: 14: 23: Fatal error: pcap-bpf.h: No file or directory
How to install gcc in centos 7 and gcc in centos 7
System Environment:Centos7.4
When Nodejs8.7 is installed today, a warning is reported:
WARNING: C ++ Compiler too old, need g ++ 4.9.4 or clang ++ 3.4.2 (CXX = g ++)
Then, check the version installed on your system: 4.8.5.
Okay, you can't use yum for upgrade. you can install it manually.
1. Select the version to be upgraded
Gcc ftp LIST
(I selected 5.4.
CentOS 7 network configuration (1), centos
Problem description:
After CentOS7 is installed, the local IP address cannot be found using the ifconfig command.Unable to access the InternetYou cannot log on using SSH.
Go to the/etc/sysconfig/network-scripts/directory/
Use the ls command to view the NIC configuration file name
Use vim to edit the file
Change ONBOOT = no in the last line to ONBOOT = yes
Centos vi copy and delete the cut paste command, centos Paste
Copy:
Yy: copy the current row
Nyy: Number of copied rows (including the current row ). Assume that three rows are copied, And the cursor is positioned at the position of Row 3. If you enter 3yy, 1 ~ is copied ~ 3 rows of content
Copy multiple rows in another way: (start row, end row co paste position), for example, copy 3 ~ Paste the content
Modify hostname in Centos and hostname in centos
1. Temporary modification with commands
Hostname oier
In this way, the hostname of the server becomes oier, but it will change back after restart.
2. Edit the configuration file for permanent Modification
Vi/etc/sysconfig/network
HOSTNAME = oier
It takes effect after being restarted.
====================================
Host resolution Modificati
How to check Centos context switching: centos Context1. What is Context Switch )?
Context switching, also known as process switching or task switching, refers to switching the CPU from one process or thread to another process or thread.
The operating system can run multiple processes at the same time. However, a single CPU can only execute one task at the same time. The operating system uses time slice rota
Restore rm from CentOS and rm from centos
I. Mount the disk partition as read-only
This step is very important, and the disk should be mounted as read-only as soon as possible after the file is deleted by mistake. The sooner you start the process, the higher the chances of successful recovery.
1. Check the partition in which the deleted file is located.
[root@localhost~]#mount/dev/mapper/VolGroup-lv_root o
system as much as possible, or a library where Yum sources can be installed, such as GD, Libpng, Libjpeg, Libfreetype ... Everything, the CentOS source is ready, we just want a different version of PHP. Since we need the source code to compile PHP, so we need to install the corresponding source version, and with the Devel logo version.
yum install libpng libpng-devel libjpeg-turbo libjpeg-turbo-devel freetype freetype-devel gd
In the PHP source direc
Linux CentOS MySQL database installation and configuration tutorial, centos installation and configuration tutorial
Notes on installing the mysql database
A) download the mysql source installation package: wget http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm
B) install mysql Source: yum localinstall mysql57-community-release-el7-8.noarch.rpm
If the end of a complete appears !, The MySQL
How to upgrade python to python 2.7 Under centos 5.x, centos 5.xpython2.7
First download python2.7.3 from the official website, compile and install itCopy codeThe Code is as follows:$ Wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz$ Tar zxvf Python-2.7.3.tgz$ Cd Python-2.7.3$./Configure$ Make make installBack up the original python and connect python2.7 to the new location.Copy codeThe Code is
Enable iptables firewall for CentOS and iptables for centos
In fact, these things should be clearly written as soon as they are completed. They have been written for a long time. Maybe they have not been written in some places. I hope to see the kids shoes for help and I will update them again, if any error occurs, please criticize and correct it.
I used iptables as a firewall before 7.0 and firewall after
://localhost:5000; Proxy_http_version 1.1; Proxy_set_header Upgrade $http _upgrade; Proxy_set_header Connection keep-alive; Proxy_set_header Host $host; Proxy_cache_bypass $http _upgrade; }}Perform nginx-s reload or systemctl restart Nginx to restart Nginx after configuration is completeThen access port 80This time the visit found it possible to report 502, find a long way to find a solutionCause: SELinux configuration issues.Workaround: Turn off SELinux.Input: sestatus , if SE
Reprint please indicate the source: http://blog.csdn.net/l1028386804/article/details/51537000
These configurations are based on VMware network Adapter VMnet8, assuming that my VMware network Adapter VMnet8 IP address is 192.168.106.1
The following figure:
My Ifcfg-eth0 file is configured as follows:
Device=eth0
type=ethernet
uuid=f9f0898c-bf2c-4183-857a-eab291cd904d
onboot=yes
NM_CONTROLLED= Yes
bootproto=static
ipaddr=192.168.106.130
netmask=255.255.255.0
broadcast=192.168.106.255
gatew
Download the response version of the YUM source on the MySQL official network: http://dev.mysql.com/downloads/repo/yum/# download Source $wgethttp//dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm# Installation Source $ rpm-IVH mysql57-community-release-el7-9. noarch.rpm# installed MySQL, will auto-install dependent software $Yum Install-Y mysql-server# Modifying MySQL configuration file $VI/etc/my.cnf# Modifying or shutting down the MySQL password policy (optional line): Validate_pa
Installing fuseDownload:wget http://nchc.dl.sourceforge.net/project/fuse/fuse-2.x/2.9.2/fuse-2.9.2.tar.gzInstallation:TAR-ZXVF TAR-ZXVF fuse-2.9.2.tar.gzCD fuse-2.9.2./configureMakeMake installModprobe FuseWhat fuse is looking at here, NTFS-3G relies on it so it needs to be installed.Installing NTFS-3GDownload:wget http://tuxera.com/opensource/ntfs-3g_ntfsprogs-2013.1.13.tgzInstallation:Tar tar ntfs-3g_ntfsprogs-2013.1. - . tgz cd NTFS-3g_ntfsprogs-2013.1. - . /Configuremake doinstallMountMoun
[Deployment] configure the ip address of CentOS and deploy the ip address of centosEnvironment
Virtual Machine: VMWare10.0.1 build-1379776
Operating System: 64-bit CentOS7Introduction
CentOS7 Minimal installation (Minimal) without the ifconfig command, which can be installed in the net-tools Package through yum, but when our network is not configured, at this time, yum cannot work (cannot be connected to the network to download software packages ). T
Install JDK 7 on CentOS and JDK 7 on centos1. Download jdk
Http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
Select jdk-7u75-linux-x64.rpm2. Install jdk
Create directoryMkdir/usr/java
Switch to the download directory and copy the downloaded file/Usr/java cp jdk-7u75-linux-x64.rpm/usr/java
Switch to/usr/java to modify permissionsChmod + x jdk-7u75-linux-x64.rpm
RunRpm-ivh jdk-7u75-linux-x64.rpm3. environment variable c
1. download Java Web: http://www.oracle.com/technetwork/java/javase/downloads/index.htmlI got a jdk-6u43-linux-i586.bin.
Ii. Installation 1. I created a Java folder under OPT.# Mkdir/opt/Java
2. I used winscp to put the JDK file under the/usr/Java folder.Run the following command:# Cd/opt/Java# Chmod A + x jdk-6u43-linux-i586.binGive the current user permission to execute the jdk-6u43-linux-i586.bin;
3. Install#./Jdk-6u43-linux-i586.binRun the jdk-6u43-linux-i586.bin, it will show the JDK ins
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.