A new HOSTNAMECTL directive is added to the CENTOS7 on the host name change, which is more convenient both in terms of output and change. Take a look at hostname help information:
The code is as follows
Copy Code
[Root@361
Check to see if the system is 64-bit or 32-bit:
The code is as follows
Copy Code
1, getconf long_bit or getconf word_bit[Root@localhost ~]# getconf Long_bit64
List all version information,
The code
Use your favorite editor, such as VI, to open the/etc/sysconfig/i18n file
# vi/etc/sysconfig/i18nLang= "en_US. UTF-8 "Sysfont= "Latarcyrheb-sun16"
Another way is to change the environment variable Lang#export lang= "en_US. UTF-8 "But such a reboot
Method One:
First, view the current system partition situation:
>free-m
Create a file for the swap partition:
>dd If=/dev/zero of=/whatever/swap bs=block_size (10M) count=number_of_block (3000)
Third, set up swap partition files:
Talking about RPM to many compiled and installed friends, RPM installation is a fool to install.
Oh, in fact, RPM is a very effective centralized deployment of the solution.
YUM+RPM is a very fast and convenient large-scale deployment scenario.
Ready to write a C file
1, ws.h "header file, declare function name, not implemented"2, wso.c "contains function body, implement function, need to compile into dynamic link library"3, ws.h "main program execution document"
New Makefile File
Toucu
Solution:In CentOS 7, modify MySQL database character encoding to UTF-8, which contains all the characters needed by all countries in the world, is an international code.Specific operations:1. Log on to the MySQL console.Mysql-u root-pEnter
Background:Compared with VPN, it is much easier to build a Shadowsocks service and use it through browser proxy.Similar to SSH Tunnel, the Shadowsocks server establishes an encrypted Tunnel with its dedicated Shadowsocks client. Then, the
Solution1. Open the Apache configuration file httpd. conf, for example,/etc/httpd/conf/httpd. conf by default.# Vi/etc/httpd/conf/httpd. conf2. Find the adddefacharcharset configuration item.Adddefacharcharset UTF-83. Modify the adddefacharcharset
Check whether JDK is installed in Linux.The installed CentOS comes with OpenJdk and uses the java-version command. The following information is displayed:Java version "1.6.0 & Prime;OpenJDK Runtime Environment (build 1.6.0-b09)OpenJDK 64-Bit Server
NameVirtualHost *: 80Note 1: NameVirtualHost specifies the IP address or domain name used by the VM, but preferably the IP address. When using a domain name-based VM, NameVirtualHost is a required command. Multiple NameVirtualHost can be
Step 1: install the required packageFirst, make sure that the required packages are installed on your system. Run the following command to install the required package before compiling the Git source code!# Yum install curl-devel expat-devel gettext-
In this experiment, we used three virtual servers (centos5.5) under Vmware, one as the load scheduler (Lvs-server) and two real web servers (web1 and web2 ).I. Lvs-nat experiment:Configure the IP address:1. Configure the Nic connected to the virtual
If your wordpress installation directory is wordpress, the default wizard configuration will show insufficient permissions:Sorry, but I can't write the wp-config.php file.You can create the wp-config.php manually and paste the following text into it.
In linux, finding files that have changed at a specific time and files that have time-related relationships with a given file is particularly important for troubleshooting. The find command is used to do this, find the files that have been modified
VPS servers in foreign countries generally have control panels, and many types of systems can be installed on their own. However, some IDCs in China are relatively pitted, not only are there no panels, there is also a bunch of useless software in
Compared with virtual hosts, VPS has a unique advantage. However, for users without any Linux experience, it is not easy to configure a complete WEB environment. There are also many WEB environment scripts and methods installed with one click on the
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.