The first thing to do after installing a system is to configure the network. Modified parameter profiles and instructions for observing results of important startup scriptsIP-related parameters/etc/sysconfig/network-scripts/ifcfg-eth0 Ifconfig
1. Set the file as a shared folder2. Determine your Windows IP address, username and passwordThe 3.CentOS terminal enters the following content:[root@*** mnt]# mkdir Wind[root@*** mnt]# mount-t cifs//192.168.61.77/newscrawl/mnt/wind-o
64-bitVim
The code is as follows
Copy Code
wget http://downloads.zend.com/optimizer/3.3.3/ZendOptimizer-3.3.3-linux-glibc23-x86_64.tar.gzTAR-ZVXF zendoptimizer-3.3.3-linux-glibc23-x86_64.tar.gzCD
Method One,
Edit/etc/rc.d/rc.local File
Format is program name program path
such as a.sh/home/a.sh
The second method
Just replace the your_prog_name with the name of your actual script or execution file, and set the Prog_path to a specific path.
After installing the Nginx, the reboot requires "Kill-hup Nginx process number" to reload, which is obviously inconvenient. It would be much easier to manage it directly through scripting, like Apache.
Nginx official had already thought well, also
Open/etc/httpd/conf/httpd.conf File
Modify two places
The code is as follows
Copy Code
#Listen 12.34.56.78:80Listen 80
#把80改为你设置的端口, I set the port to 8080
The code is as follows
Copy Code
Under the CentOS system, there are two main ways to set up your own installed programs to boot.
1, the start of the program to add the command to the/etc/rc.d/rc.local file, such as the following is the setting up boot httpd.
#!/bin/sh #
This example describes the CentOS firewall usage. Share to everyone for your reference, specific as follows:
Shut down:
/etc/init.d/iptables stop
Open:
/etc/init.d/iptables start
Reboot:
/etc/init.d/iptables
In CentOS, you can query using the YUM-QL for the specific installation location of the packages installed in Yum.
For example, I want to query the installation location of a git-http-backend component of git, which can be implemented using the
1. Install libevent before installing Memcached , first download with wget Libevent:wget http://www.monkey.org/~provos/libevent-1.4.13-stable.tar.gzTar zxf libevent-1.4.13-stable.tar.gzCD libevent-1.4.13-stable./configureMake && make install 2.
General idea, prepare master and slave server, configure Primary server can SSH login from server without password, unzip and install JDK, unpack and install Hadoop, configure HDFs, MapReduce and other subordinate relations.1, the environment, 3
1. Configure DNSVim/etc/resolv.confNameServer 192.168.0.1NameServer 8.8.8.8NameServer 8.8.4.42. Configure the Gatewayroute add default GW 192.168.1.1 Dev eno*This changes the gateway to 192.168.1.1 , which is only temporary, when you restart the
# Python-VPython 2.6.61. Download the Python-2.7.3 # Wget http://python.org/ftp/python/2.7.3/Python-2.7.3.tar.bz22. Extract # Tar-jxvf Python-2.7.3.tar.bz23. Change the working directory# Cd Python-2.7.34. Installation#./Configure# Make all# Make
We now have two servers, one with an intranet IP address and the other with an intranet IP address. To access an intranet server, you need to map the intranet port to the Internet.Server 1:Internet IP address 10.0.0.1Intranet IP address
In order to write iptables rules, this port must be fixed to better use, so in/usr/lib/systemd/scripts/nfs-utils_env.sh found a very interesting thing So I directly wrote the sysctl file.Echo-e '### nfs add \ nfs. nfs. nlm_tcpport = 32803 \ nfs. nfs.
Because the company's internal network needs to be tested, domain names are used to access the company's internal server. However, the vro does not have the domain name forwarding function. Therefore, the DNS method is used.Background:One internal
Record several common yum sources under CentOS 7, including PHP7, MariaDB, Redis, and Nginx, as well as Alibaba Cloud sources to facilitate installation of these software on virtual machines or cloud hosts.1. PHP7 remi sourceUse remi Source:$ Sudo
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