Linux method 3

Source: Internet
Author: User
Tags sapi
I believe many new users who want to learn linux are wondering what linux learning courses are good. the following small series will collect and organize several important tutorials for you to learn, if you want to learn more, go to the wdlinux school to find more tutorials. What is Deb format or software deb format... I believe many new users who want to learn linux are wondering what linux learning courses are good. the following small series will collect and organize several important tutorials for you to learn, if you want to learn more, go to the wdlinux school to find more tutorials.
What is Deb? Format or software
The deb format is the exclusive installation package format of the Debian system (including Debian and Ubuntu). combined with the APT management system, deb has become a popular installation package in Linux. After entering the 2.x era, Cydia author Jay Freeman (saurik) was transplanted to the iPhone platform, along with the APT software management system. Therefore, the installation software on cydia is in the deb format, and the source is like a software list.
Because Unix systems have strict requirements on permissions, owners, and groups, and deb-format installation packages often involve underlying operations of the system, permission setting is particularly important.
Deb is like an msi installation file in windows with full permissions.
 
Php5.3 Php-fpm Supported
Php5.3.x and php have built-in support for php-fpm. you can obtain a version that supports php-fpm in svn.
In php5.3.3, php-fpm is supported by default.
However, the content of php/sbin/php-fpm has changed. previously it was a script, and now it is a binary file, which requires signal control:
The master process can understand the following signals:
SIGINT, SIGTERM terminated immediately
SIGQUIT ends smoothly
SIGUSR1 re-open the log file
SIGUSR2 smoothly reloads all worker processes and reloads configuration and binary modules.

There is still a startup script in the PHP installation directory, located in sapi/fpm/init. d. php-fpm
Copy the script to the system directory and modify the permission.
For example, in wdlinux
Cp sapi/fpm/init. d. php-fpm/www/wdlinux/init. d/php-fpm
Chmod 755/www/wdlinux/init. d/php-fpm
In this way, you can
 
Linux Enable and disable IPv6 Method
In Linux, IPv6 is supported by default, but enabling IPv6 will affect the network performance of some application servers that are not well supported by IPv6, after all, the current network switching device is not IPv6.

In Linux, first check whether IPv6 has been enabled. you can determine from three aspects.
1. use ifconfig to check whether your IP address contains an IPv6 address.
[Root @ localhost ~] # Ifconfig
Eth0 Link encap: Ethernet HWaddr 00: EA: 01: 09: 73: AB
Inet addr: 113.107.xx.xx Bcast: 113.107.42.255 Mask: 255.255.255.0
Inet6 addr: fe80: 2ea: 1ff: fe09: 73ab/64 Scopeink
Up broadcast running multicast mtu: 1500 Metric: 1
RX packets: 75967 errors: 0 dropped: 0 overruns: 0 frame: 0
TX packets: 43331 errors: 0 dropped: 0 overruns: 0 carrier: 0
Collisions: 0 fig: 1000
RX bytes: 7847346 (7.4 MiB) TX bytes: 159737697 (152.3 MiB)
Interrupt: 169


2. check whether the IP address of the service listening has an IPv6 address.
[Root @ localhost ~] # Netstat-lnpt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
Tcp 0 0 127.0.0.1: 199 0.0.0.0: * LISTEN 2165/snmpd
Tcp 0 0 0.0.0.0: 3306 0.0.0.0: * LISTEN 2372/mysqld
Tcp 0 0 113.107.xx.xx: 53 0.0.0.0: * LISTEN 2397/named
Tcp 0 0 127.0.0.1: 53 0.0.0.0: * LISTEN 2397/named
Tcp 0 0 127.0.0.1: 953 0.0.0.0: * LISTEN 2397/named
Tcp 0 0: 22: * LISTEN 2182/sshd
Tcp 0 0: 80: * LISTEN 2517/(squid)

3. use lsmod to check whether ipv6 modules are loaded.
[Root @ localhost ~] # Lsmod | grep ipv6
Ipv6 435105 274 cnic
Xfrm_nalgo 43333 1 ipv6



After confirming that IPv6 is enabled, you can disable it as follows:
1. use the vi editor to open/etc/modprobe. conf.
2. add the following two to the document:
Alias net-pf-10 off
Alias ipv6 off
Save and exit, and restart the system.
After restarting, you can use the preceding three methods to verify whether IPv6 support has been disabled.

IPv6 is supported by default, so when you want to restart IPv6 support, comment out the two commands in/etc/modprobe. conf.
 
This tutorial from wdlinux Forum http://www.wdlinux.cn/bbs/, welcome to reprint ~
Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.