Three ways to learn Linux

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

I believe that a lot of beginners who want to learn Linux are worried about what to look at Linux learning Tutorials Good, the following small series for everyone to collect and organize some of the more important tutorials for everyone to learn, if you want to learn more words, can go to wdlinux school to find more tutorials.

What is the Deb format or software

The Deb format is a Debian system (including Debian and Ubuntu) exclusive installation package format, with the APT management system, has become a popular Linux under the current installation of a package. After entering the 2.x era, Cydia author Jay Freeman (Saurik) was transplanted to the iphone platform, along with the APT software management system. So the installation software on Cydia is in Deb format, and the source is like a list of software.

Because the Unix class system to the permissions, owners, groups of strict requirements, and Deb format installation package often involves the system compared to the bottom of the operation, so permissions, such as the setting is particularly important.

If it's not a good idea to make this analogy, Deb is like Windows MSI Setup file with full permissions.

PHP-FPM Support After php5.3

Starting with the built-in PHP-FPM support from php5.3.x,php, you can get a php-fpm version in SVN.

To php5.3.3, the default is to support PHP-FPM

But PHP/SBIN/PHP-FPM's content has changed, a script that is now a binary file that requires signal control:

The master process can understand the following signals

SIGINT, Sigterm immediately terminated.

Sigquit Smooth Termination

SIGUSR1 Reopen the log file

SIGUSR2 smooth overload of all worker processes and reload configuration and binary modules

In the PHP installation directory, there is still a startup script located in the SAPI/FPM/INIT.D.PHP-FPM

Just copy the script to the system directory and modify the permissions

As in Wdlinux.

CP SAPI/FPM/INIT.D.PHP-FPM/WWW/WDLINUX/INIT.D/PHP-FPM

chmod 755/www/wdlinux/init.d/php-fpm

That's it.

How to turn IPv6 on and off Linux

On Linux today, IPV6 has been supported under the default installation, but for some IPv6 support is not very good application server, open the IPV6 will affect the network performance of the server, after all, the current network switching device is not IPv6.

In Linux, first verify that IPV6 has been enabled and can be determined from three aspects.

1. Use Ifconfig to see if your IP address contains a 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 txqueuelen:1000

RX bytes:7847346 (7.4 MiB) TX bytes:159737697 (152.3 MiB)

interrupt:169

2. To see if there are IPV6 format addresses in the IP that the service listens on

[Root@localhost ~]# NETSTAT-LNPT

Active Internet 50x15 (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:: £ º::* LISTEN 2182/sshd

TCP 0 0:::::* LISTEN 2517/(squid)

3. Use Lsmod to see if the IPv6 module is loaded

[Root@localhost ~]# Lsmod | grep IPv6

IPv6 435105 274 cnic

Xfrm_nalgo 43333 1 IPv6

When you are sure the IPv6 is turned on, you can turn it off as follows

1. Use VI Editor to open/etc/modprobe.conf

2. Add the following two articles to the documentation:

Alias net-pf-10 off

Alias IPv6 off

Save the exit and reboot the system.

After restarting, you can use the three methods above to verify that IPV6 support has been turned off.

IPV6 is supported by default, so you can comment out the two instructions in/etc/modprobe.conf when you want to restart IPV6 support.

This tutorial is excerpted 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.