1. Modify SSH telnet port to 8888# Vi/etc/ssh/sshd_config
Port 8888 #把 #Port 22 modified to port 8888
# servicesshd Restart #重启SSH服务 or service sshd restart2. Firewall Add portThe default iptables only part of the port, use additional ports such
Yum installation as always convenient:
First of all:
Yum Install httpdAfter the carriage return, Yum prompts the currently installed HTTPD version and automatically updates it, and installs automatically if it is not installed. Note Enter "Y"
After the installation test found that how HTML can run, and PHP is not, show file not Found, is very sad Google, found a variety of strange sayings, as a error_log can not understand the people could only try, and I will install the steps carefully
We do not boot the NIC, so we can only use
Ifup eth0
To start, but every time it feels so inconvenient. I hope to boot up the network card automatically
Then Baidu search for a moment found that you can modify the network card (ifcfg-eth0)
Demo EnvironmentWindows 7 is my computer using this machineVMware8.0 installed the Linux CentOS 6.2 X32
I first talk about my network situation, currently I use the IP address is 192.168.1.99, subnet mask is 255.255.255.0, Gateway is 192.168.1.1.
Varnish is a high-performance open-source HTTP accelerator, Norway's largest online newspaper Verdens Gang (http://www.vg.no) using 3 units varnish replaced the original 12 squid, performance is even better than before. Visible varnish is a rather
The code is as follows
Copy Code
./configureMake allMake installMake cleanMake Distclean
No accident, you should be able to see the python2.7 file in/usr/local/bin/, also explained 2.7 installation success. The next thing
CentOS Boot Custom Script
Sometimes we need to set up a script on the server so that he can start it on his own. The method is as follows:
cd/etc/init.d VI youshell.sh #将youshell. SH modified for your own foot name
Write your own script and save
Objective
Linux system default directory color is blue, in the black background is not clear, you can use the following 2 ways to modify the LS view color.
Method:
1, copy/etc/dir_colors file is the current home directory. Dir_colors
There is no need to dwell on the relationship between CentOS, Fedora and Redhat. Redhat I can't afford it, its anti-piracy work is very good, so I have never used redhat. Fedora is my first contact with Linux on a system, I think it is very good,
1, confirm the local sshd configuration file (requires root permissions)
$ gedit/etc/ssh/sshd_config
Find the following and remove the annotation "#"
Rsaauthentication Yes
pubkeyauthentication Yes
authorizedkeysfile.
1. Installation Instructions:
System Environment: CentOS-4.0
2. Dependent procedures
(1). Gzip module requires zlib library(2). Rewrite module requires Pcre library(3). SSL support requires OpenSSL library
3. There are two ways to install a
Operating EnvironmentOperating system: Mac OS Lion
Virtual Host: VMware Fusion
Virtual system: Centos 5.5+
Action User: Root
To achieve the goal: to build LNMP environment.
Installing dependent libraries and development environments
Copy
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.
Solve the problem of garbled Chinese characters when using CRT links in CentOS 7:[Root @ hz/] # export LC_ALL = en_US.UTF-8Ideas:[Root @ hz/] # locale # default current language environmentLANG = en_US.UTF-8LC_CTYPE = "C"LC_NUMERIC = "C"LC_TIME = "C"
MariaDB is a branch of MySQL. It was developed by the father of MySQL. Since its acquisition by Oracle, MySQL has been updated slowly and has a tendency to close the source. Major companies have switched to Mariadb, including Facebook and Google.My
1. Modify Nic configuration Edit: vi/etc/sysconfig/network-scripts/ifcfg-eth0DEVICE = eth0 # describe the DEVICE alias for the NIC, for example, it is eth0 in the ifcfg-eth0 fileBOOTPROTO = static # set the way for the NIC to obtain the IP address.
View the users in the system: cut-d:-f 1/etc/passwdView users who can log on to the system: cat/etc/passwd | grep-v/sbin/nologin | cut-d:-f 1View user operations: w command (root permission required)View a User: w user nameView logon User: whoView
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service