1, CentOS7 to modify the host name
1) Hostname host name
Eg:
Hostname ityangs
Note: This way, only the temporary host name can be modified, when the machine is restarted, the host name changes back.
2) hostnamectl set-hostname xxx
Eg:
Hostnamectl
First, the viewing system has been installed to the software:
1, yum list installed (+ software name)
2, RPM-QA (can cooperate with grep to see if a software is installed)
2 is much faster because it is based on a local database.Yum also has the
CentOS (Community ENTerprise operating System) is one of the Linux distributions that is compiled from the source code released by Red Hat ENTerprise Linux in accordance with open source rules. Because of the same source code, some servers that
Test environment: CentOS 5.51, add users, first with the AddUser command to add an ordinary user, the command is as follows:#adduser Tommy//Add a user named Tommy#passwd Tommy//Change PasswordChanging password for user Tommy.New UNIX
1. View firewalls running status Systemctl status firewall
2. Open Firewall firewall systemctl start FIREWALLD
3. Configure the rules of the firewall, only to configure zone as public rules,
(1), add the accessible port, the permanent parameter
Reprint Address: http://jingyan.baidu.com/article/6b182309b95badba58e159e0.html
1, start CentOS system, into the desktop, the author's system is CentOS 6
2, can display the Chinese prerequisite is: The system has installed the Chinese voice pack.
1, download the JDK and Tomcat installation package to the/OPT directory, use the command: Wget installation package in the network address;
2, use the command decompression installation package: TAR-ZXVF package name;
3, to extract the file to be
[Root@localhost ~]# Yum Install Libtool
Loaded Plugins:rhnplugin, security
This system is not registered with RHN.
RHN support would be disabled.
Setting up Install Process
Nothing todo
Solution:
1, into the/etc/yum.repos.d/directory.
Enter at
1. Vi/etc/sysconfig/iptables
Way One
Add the following content
-A input-m state--state new-m tcp-p TCP--dport your port-j ACCEPT
Mode two/sbin/iptables-i input-p TCP--dport your port-j ACCEPT/etc/rc.d/init.d/iptables Save
Reboot the firewall
It's been a long day, and it's finally done.
The following is my installation process:
1, the Nouveau driver into the blacklist, modify the/etc/modprobe.d/blacklist.conf file,
Join blacklist nouveau in the back
2. Re-establish INITRAMFS image file
1. Add a new network adapter in the virtual machine according to the following two pictures
Two. See if the NIC is recognized!Vi/etc/udev/rules.d/70-persistent-net.rules #可以看到有两块网卡!
Copy eth1 Card's MC address, next we want to create ifcfg-eht1
Reference article: 51CTO recommended Blog-CentOS yum Source Configuration Tips
This article refers to the above blog, and make some adjustments.
Brief Introduction:
Linux package rpm is convenient to use, but it does not solve some of the
March 6, 2017 11:43:07
1. Operating level of the Chkconfig management program
Such as: Set firewall default does not open
Chkconfig--level iptables off Run Level 3 (command line), 5 (interface) does not open iptables 2. Configure network card
SELinux (security-enhanced Linux) security-enhanced Linux is an implementation of mandatory access control (mandatory access controls). In this kind of control, Linux has a lot of operations that can be banned or unsuccessful. Before the
Ps-a-O Stat,ppid,pid,cmd | Grep-e ' ^[zz] '
How to view and kill the zombie process under CentOS
Yesterday, the server expired, before the server due to small space, can not meet the current service requirements, the new purchase of a server,
The first step:Download the latest nginx, address Nginx official website http://nginx.org/, select the latestDownload SaveStep Two:In the CentOS Terminal download folder to find the downloaded file, perform the decompression name ning command
What I'm talking about here is the desktop version of CentOS. First of all, we must ensure that the network unblocked, open the browser, see if can surf the internet.
1. Click on the application in the top left corner to find an overview of 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.