粉蝴直播直播视频在线观看免费版下载 - 粉蝴直播平台官方app下载

SuperBlock損壞修復(fù)

?

fsck -t ext4 /dev/sda1

說(shuō)明:superblock損壞導(dǎo)致無(wú)法mount硬盤,可以使用以上命令自動(dòng)恢復(fù)

1、fdisk -l??????????????????????????? 確定是哪塊硬盤

2、parted /dev/sda?????????? 確定文件系統(tǒng)是ext2 ext3 還是ext4

3、fsck -t ext4 /dev/sda1 這里文件系統(tǒng)是ext4,磁盤是sda1

?

【蘇州IT外包經(jīng)驗(yàn)】ping不通的情況下,如何掃描端口

Ping不通對(duì)方的主機(jī)能掃描到他的端口嗎?答案是肯定的

1、現(xiàn)象:某個(gè)IP被網(wǎng)關(guān)禁ping了,但想知道它開(kāi)了哪些端口

2、準(zhǔn)備工具:nmap

3、命令格式:nmap X.X.X.X -Pn1-65535

??????? 1-65535是指定端口范圍

4、測(cè)試結(jié)果如圖

使用“alter system register;”解決動(dòng)態(tài)監(jiān)聽(tīng)注冊(cè)緩慢問(wèn)題

感受一下Oracle數(shù)據(jù)庫(kù)實(shí)例的動(dòng)態(tài)監(jiān)聽(tīng)注冊(cè)細(xì)節(jié)。有如下這樣一個(gè)規(guī)律,先總結(jié)在這里:
①如果是先啟動(dòng)監(jiān)聽(tīng),后啟動(dòng)數(shù)據(jù)庫(kù)實(shí)例,則動(dòng)態(tài)監(jiān)聽(tīng)會(huì)自動(dòng)識(shí)別到啟動(dòng)的數(shù)據(jù)庫(kù)實(shí)例;
②在數(shù)據(jù)庫(kù)實(shí)例正常運(yùn)行的情況下重啟監(jiān)聽(tīng),則數(shù)據(jù)庫(kù)實(shí)例會(huì)等很長(zhǎng)時(shí)間才能在動(dòng)態(tài)監(jiān)聽(tīng)中注冊(cè)成功,大約需要1分鐘的等待時(shí)間;
③如果是先啟動(dòng)數(shù)據(jù)庫(kù)實(shí)例,后啟動(dòng)監(jiān)聽(tīng),效果和②一樣;
④如果不希望長(zhǎng)時(shí)間等待動(dòng)態(tài)監(jiān)聽(tīng)注冊(cè)的過(guò)程,可以使用“alter system register;”命令加速。

真實(shí)的體驗(yàn)一下這個(gè)過(guò)程。切身體驗(yàn)之后這些結(jié)論將顯得那樣的自然和純真。

1.第①種場(chǎng)景模擬
1)在數(shù)據(jù)庫(kù)實(shí)例未啟動(dòng)時(shí)啟動(dòng)監(jiān)聽(tīng)程序
ora11g@secdb /home/oracle$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Tue Jan 18 20:47:22 2011

Copyright (c) 1982, 2009, Oracle.? All rights reserved.

Connected to an idle instance.

NotConnected@> !lsnrctl status

LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 18-JAN-2011 20:48:58

Copyright (c) 1991, 2009, Oracle.? All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
------------------------
Alias???????????????????? LISTENER
Version?????????????????? TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date??????????????? 29-DEC-2010 02:03:55
Uptime??????????????????? 20 days 18 hr. 45 min. 3 sec
Trace Level?????????????? off
Security????????????????? ON: Local OS Authentication
SNMP????????????????????? OFF
Listener Parameter File?? /oracle/ora11gR2/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File???????? /oracle/ora11gR2/diag/tnslsnr/secdb/listener/alert/log.xml
Listening Endpoints Summary...
? (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
? (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=secdb)(PORT=1521)))
The listener supports no services
The command completed successfully

因?yàn)閿?shù)據(jù)庫(kù)實(shí)例沒(méi)有啟動(dòng),監(jiān)聽(tīng)理所當(dāng)然地處于未檢測(cè)到任何實(shí)例的狀態(tài)。

2)啟動(dòng)數(shù)據(jù)庫(kù)實(shí)例
NotConnected@> startup;
ORACLE instance started.

Total System Global Area? 535662592 bytes
Fixed Size????????????????? 1337720 bytes
Variable Size???????????? 411043464 bytes
Database Buffers????????? 117440512 bytes
Redo Buffers??????????????? 5840896 bytes
Database mounted.
Database opened.

3)隨即查看監(jiān)聽(tīng)狀態(tài)
sys@ora11g> !lsnrctl status

LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 18-JAN-2011 20:49:15

Copyright (c) 1991, 2009, Oracle.? All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
------------------------
Alias???????????????????? LISTENER
Version?????????????????? TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date??????????????? 29-DEC-2010 02:03:55
Uptime??????????????????? 20 days 18 hr. 45 min. 20 sec
Trace Level?????????????? off
Security????????????????? ON: Local OS Authentication
SNMP????????????????????? OFF
Listener Parameter File?? /oracle/ora11gR2/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File???????? /oracle/ora11gR2/diag/tnslsnr/secdb/listener/alert/log.xml
Listening Endpoints Summary...
? (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
? (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=secdb)(PORT=1521)))
Services Summary...
Service "ora11g" has 1 instance(s).
? Instance "ora11g", status READY, has 1 handler(s) for this service...
The command completed successfully

第①種場(chǎng)景結(jié)論得到印證:
①如果是先啟動(dòng)監(jiān)聽(tīng),后啟動(dòng)數(shù)據(jù)庫(kù)實(shí)例,則動(dòng)態(tài)監(jiān)聽(tīng)會(huì)自動(dòng)識(shí)別到啟動(dòng)的數(shù)據(jù)庫(kù)實(shí)例;

2.第②種場(chǎng)景模擬
1)手工停啟監(jiān)聽(tīng)程序
sys@ora11g> !lsnrctl stop

LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 18-JAN-2011 20:52:55

Copyright (c) 1991, 2009, Oracle.? All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
The command completed successfully

sys@ora11g> !lsnrctl start

LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 18-JAN-2011 20:53:03

Copyright (c) 1991, 2009, Oracle.? All rights reserved.

Starting /oracle/ora11gR2/product/11.2.0/dbhome_1/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 11.2.0.1.0 - Production
System parameter file is /oracle/ora11gR2/product/11.2.0/dbhome_1/network/admin/listener.ora
Log messages written to /oracle/ora11gR2/diag/tnslsnr/secdb/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=secdb)(PORT=1521)))

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
------------------------
Alias???????????????????? LISTENER
Version?????????????????? TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date??????????????? 18-JAN-2011 20:53:03
Uptime??????????????????? 0 days 0 hr. 0 min. 0 sec
Trace Level?????????????? off
Security????????????????? ON: Local OS Authentication
SNMP????????????????????? OFF
Listener Parameter File?? /oracle/ora11gR2/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File???????? /oracle/ora11gR2/diag/tnslsnr/secdb/listener/alert/log.xml
Listening Endpoints Summary...
? (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
? (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=secdb)(PORT=1521)))
The listener supports no services
The command completed successfully

2)每隔一秒檢查一下監(jiān)聽(tīng)的狀態(tài)
sys@ora11g> !lsnrctl status

LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 18-JAN-2011 20:53:11

Copyright (c) 1991, 2009, Oracle.? All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
------------------------
Alias???????????????????? LISTENER
Version?????????????????? TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date??????????????? 18-JAN-2011 20:53:03
Uptime??????????????????? 0 days 0 hr. 0 min. 7 sec
Trace Level?????????????? off
Security????????????????? ON: Local OS Authentication
SNMP????????????????????? OFF
Listener Parameter File?? /oracle/ora11gR2/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File???????? /oracle/ora11gR2/diag/tnslsnr/secdb/listener/alert/log.xml
Listening Endpoints Summary...
? (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
? (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=secdb)(PORT=1521)))
The listener supports no services
The command completed successfully

……省略部分狀態(tài)檢查信息……

sys@ora11g> !lsnrctl status

LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 18-JAN-2011 20:53:14

Copyright (c) 1991, 2009, Oracle.? All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
------------------------
Alias???????????????????? LISTENER
Version?????????????????? TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date??????????????? 18-JAN-2011 20:53:03
Uptime??????????????????? 0 days 0 hr. 0 min. 11 sec
Trace Level?????????????? off
Security????????????????? ON: Local OS Authentication
SNMP????????????????????? OFF
Listener Parameter File?? /oracle/ora11gR2/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File???????? /oracle/ora11gR2/diag/tnslsnr/secdb/listener/alert/log.xml
Listening Endpoints Summary...
? (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
? (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=secdb)(PORT=1521)))
The listener supports no services
The command completed successfully

……省略部分狀態(tài)檢查信息……

sys@ora11g> !lsnrctl status

LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 18-JAN-2011 20:53:22

Copyright (c) 1991, 2009, Oracle.? All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
------------------------
Alias???????????????????? LISTENER
Version?????????????????? TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date??????????????? 18-JAN-2011 20:53:03
Uptime??????????????????? 0 days 0 hr. 0 min. 18 sec
Trace Level?????????????? off
Security????????????????? ON: Local OS Authentication
SNMP????????????????????? OFF
Listener Parameter File?? /oracle/ora11gR2/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File???????? /oracle/ora11gR2/diag/tnslsnr/secdb/listener/alert/log.xml
Listening Endpoints Summary...
? (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
? (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=secdb)(PORT=1521)))
The listener supports no services
The command completed successfully

……省略部分狀態(tài)檢查信息……

sys@ora11g> !lsnrctl status

LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 18-JAN-2011 20:53:58

Copyright (c) 1991, 2009, Oracle.? All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
------------------------
Alias???????????????????? LISTENER
Version?????????????????? TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date??????????????? 18-JAN-2011 20:53:03
Uptime??????????????????? 0 days 0 hr. 0 min. 55 sec
Trace Level?????????????? off
Security????????????????? ON: Local OS Authentication
SNMP????????????????????? OFF
Listener Parameter File?? /oracle/ora11gR2/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File???????? /oracle/ora11gR2/diag/tnslsnr/secdb/listener/alert/log.xml
Listening Endpoints Summary...
? (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
? (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=secdb)(PORT=1521)))
The listener supports no services
The command completed successfully

可見(jiàn),直到20:53:58時(shí)數(shù)據(jù)庫(kù)實(shí)例仍然沒(méi)有注冊(cè)到監(jiān)聽(tīng)中,此時(shí)距離啟動(dòng)監(jiān)聽(tīng)的時(shí)候20:53:03已經(jīng)過(guò)去55秒。

最后是在20:53:59成功完成注冊(cè)。
sys@ora11g> !lsnrctl status

LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 18-JAN-2011 20:53:59

Copyright (c) 1991, 2009, Oracle.? All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
------------------------
Alias???????????????????? LISTENER
Version?????????????????? TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date??????????????? 18-JAN-2011 20:53:03
Uptime??????????????????? 0 days 0 hr. 0 min. 56 sec
Trace Level?????????????? off
Security????????????????? ON: Local OS Authentication
SNMP????????????????????? OFF
Listener Parameter File?? /oracle/ora11gR2/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File???????? /oracle/ora11gR2/diag/tnslsnr/secdb/listener/alert/log.xml
Listening Endpoints Summary...
? (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
? (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=secdb)(PORT=1521)))
Services Summary...
Service "ora11g" has 1 instance(s).
? Instance "ora11g", status READY, has 1 handler(s) for this service...
The command completed successfully

距離啟動(dòng)監(jiān)聽(tīng)時(shí)間56秒,大約用了1分鐘的時(shí)間才完成數(shù)據(jù)庫(kù)實(shí)例到監(jiān)聽(tīng)的動(dòng)態(tài)注冊(cè)。

第②種場(chǎng)景結(jié)論得到印證:
②如果是先啟動(dòng)數(shù)據(jù)庫(kù)實(shí)例,后啟動(dòng)監(jiān)聽(tīng),則數(shù)據(jù)庫(kù)實(shí)例會(huì)等很長(zhǎng)時(shí)間才能在動(dòng)態(tài)監(jiān)聽(tīng)中注冊(cè)成功,大約需要1分鐘的等待時(shí)間;

3.第③種場(chǎng)景和第②種場(chǎng)景式樣的,不贅述。

4.第④種場(chǎng)景模擬
模擬這個(gè)場(chǎng)景比較簡(jiǎn)單,只需要連續(xù)執(zhí)行如下這幾條命令即可。
!lsnrctl stop
!lsnrctl start
!lsnrctl status
alter system register;
!lsnrctl status

以下是連續(xù)執(zhí)行后的結(jié)果。

1)停止監(jiān)聽(tīng)程序
sys@ora11g> !lsnrctl stop

LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 18-JAN-2011 21:30:40

Copyright (c) 1991, 2009, Oracle.? All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
The command completed successfully

2)啟動(dòng)監(jiān)聽(tīng)程序
sys@ora11g> !lsnrctl start

LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 18-JAN-2011 21:30:44

Copyright (c) 1991, 2009, Oracle.? All rights reserved.

Starting /oracle/ora11gR2/product/11.2.0/dbhome_1/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 11.2.0.1.0 - Production
System parameter file is /oracle/ora11gR2/product/11.2.0/dbhome_1/network/admin/listener.ora
Log messages written to /oracle/ora11gR2/diag/tnslsnr/secdb/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=secdb)(PORT=1521)))

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
------------------------
Alias???????????????????? LISTENER
Version?????????????????? TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date??????????????? 18-JAN-2011 21:30:44
Uptime??????????????????? 0 days 0 hr. 0 min. 0 sec
Trace Level?????????????? off
Security????????????????? ON: Local OS Authentication
SNMP????????????????????? OFF
Listener Parameter File?? /oracle/ora11gR2/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File???????? /oracle/ora11gR2/diag/tnslsnr/secdb/listener/alert/log.xml
Listening Endpoints Summary...
? (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
? (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=secdb)(PORT=1521)))
The listener supports no services
The command completed successfully

3)查看監(jiān)聽(tīng)狀態(tài)
sys@ora11g> !lsnrctl status

LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 18-JAN-2011 21:30:44

Copyright (c) 1991, 2009, Oracle.? All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
------------------------
Alias???????????????????? LISTENER
Version?????????????????? TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date??????????????? 18-JAN-2011 21:30:44
Uptime??????????????????? 0 days 0 hr. 0 min. 0 sec
Trace Level?????????????? off
Security????????????????? ON: Local OS Authentication
SNMP????????????????????? OFF
Listener Parameter File?? /oracle/ora11gR2/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File???????? /oracle/ora11gR2/diag/tnslsnr/secdb/listener/alert/log.xml
Listening Endpoints Summary...
? (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
? (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=secdb)(PORT=1521)))
The listener supports no services
The command completed successfully

此時(shí),監(jiān)聽(tīng)未檢測(cè)到數(shù)據(jù)庫(kù)實(shí)例信息。

4)手工強(qiáng)制將數(shù)據(jù)庫(kù)實(shí)例注冊(cè)到監(jiān)聽(tīng)
sys@ora11g> alter system register;

System altered.

5)最后確認(rèn)監(jiān)聽(tīng)狀態(tài)
sys@ora11g> !lsnrctl status

LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 18-JAN-2011 21:30:44

Copyright (c) 1991, 2009, Oracle.? All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
------------------------
Alias???????????????????? LISTENER
Version?????????????????? TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date??????????????? 18-JAN-2011 21:30:44
Uptime??????????????????? 0 days 0 hr. 0 min. 0 sec
Trace Level?????????????? off
Security????????????????? ON: Local OS Authentication
SNMP????????????????????? OFF
Listener Parameter File?? /oracle/ora11gR2/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File???????? /oracle/ora11gR2/diag/tnslsnr/secdb/listener/alert/log.xml
Listening Endpoints Summary...
? (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
? (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=secdb)(PORT=1521)))
Services Summary...
Service "ora11g" has 1 instance(s).
? Instance "ora11g", status READY, has 1 handler(s) for this service...
The command completed successfully

通過(guò)手工注冊(cè)數(shù)據(jù)庫(kù)實(shí)例的方法,立桿見(jiàn)影,實(shí)例旋即注冊(cè)到了監(jiān)聽(tīng)程序中。

第④種場(chǎng)景結(jié)論得到印證:
④如果不希望長(zhǎng)時(shí)間等待動(dòng)態(tài)監(jiān)聽(tīng)注冊(cè)的過(guò)程,可以使用“alter system register;”命令加速。

5.小結(jié)
如果您能將這個(gè)過(guò)程“躬親”一下,也許會(huì)有這種很美妙的感覺(jué):一切都是那樣的自然而和諧。

再次將有關(guān)動(dòng)態(tài)監(jiān)聽(tīng)的結(jié)論附在這里:
①如果是先啟動(dòng)監(jiān)聽(tīng),后啟動(dòng)數(shù)據(jù)庫(kù)實(shí)例,則動(dòng)態(tài)監(jiān)聽(tīng)會(huì)自動(dòng)識(shí)別到啟動(dòng)的數(shù)據(jù)庫(kù)實(shí)例;
②在數(shù)據(jù)庫(kù)實(shí)例正常運(yùn)行的情況下重啟監(jiān)聽(tīng),則實(shí)例會(huì)等很長(zhǎng)時(shí)間才能在動(dòng)態(tài)監(jiān)聽(tīng)中注冊(cè)成功,大約需要1分鐘的等待時(shí)間;
③如果是先啟動(dòng)數(shù)據(jù)庫(kù)實(shí)例,后啟動(dòng)監(jiān)聽(tīng),效果和②一樣;
④如果不希望長(zhǎng)時(shí)間等待動(dòng)態(tài)監(jiān)聽(tīng)注冊(cè)的過(guò)程,可以使用“alter system register;”命令加速。

【蘇州IT外包經(jīng)驗(yàn)】Ubuntu 17.10系統(tǒng)下配置PHP+Apache+Mysql

本文為Ubuntu 17.10系統(tǒng)下配置PHP7.1+Apache2.4+Mysql5.7

一、Apache2

??? 安裝apache

??? sudo apt-get apache2

?
??? 編輯apache主配置文件/etc/apache2/apache2.conf,修改KeepAlive設(shè)置

??? KeepAlive Off

???? Apache默認(rèn)的multi-processing模塊(MPM ) 是一個(gè)event 模塊,但是 php默認(rèn)是使用 prefork模塊,禁用event模塊,啟用prefork模塊

??? sudo a2dismod mpm_event
??? sudo a2enmod mpm_prefork

??? 重啟Apache

??? sudo service apache2 restart


??? 如果在重啟Apache時(shí),看見(jiàn)關(guān)于ServerName的報(bào)錯(cuò),可以做如下修改
??????? 編輯apache主配置文件/etc/apache2/apache2.conf
??????? 添加一行ServerName localhost
??????? 然后執(zhí)行sudo service apache2 restart

二、Mysql5.7

??? sudo apt-get install mysql-server mysql-client
??? # 在安裝過(guò)程中要輸入root的密碼

??? 安裝完成后,執(zhí)行mysql_secure_installation,根據(jù)提示完成安全設(shè)置

三、PHP7.0

??? sudo apt-get install php7.0

四、LAMP

??? 整合PHP和MySQL
?? ?
??? sudo apt-get install php-gd php-mysql

??? 整合PHP和Apache

??? sudo apt-get install libapache2-mod-php7.0
??? sudo service apache2 restart


五、驗(yàn)證環(huán)境

??? 顯示PHP的版本信息

??? php -v

??? Apache默認(rèn)的網(wǎng)站根目錄位于/var/www/html/,進(jìn)入這個(gè)目錄,并創(chuàng)建info.php

??? sudo nano /var/www/html info.php

??????? <?php
??????????? phpinfo();
??????? ?>

?在瀏覽器中輸入http://localhost/info.php進(jìn)行驗(yàn)證

【蘇州IT外包經(jīng)驗(yàn)】VMware Workstation pro 14 for Linux not usable with all the kernel 4.13-rc's

Ubuntu升級(jí)到17.10后,VMware workstation不能打開(kāi)虛擬機(jī),提示“The virtual machine is unable to reserve memory. If selecting Retry does not work, try powering off or suspending any other virtual machines first”

一、環(huán)境:

物理機(jī):Ubuntu 17.10+VMware workstation Pro 14或12.5

虛擬機(jī):Windows 10、Windows 7、macOS 12

二、解決方法如下 :

1、進(jìn)入你的個(gè)人文件夾或你有修改權(quán)限的文件夾

cd ~

2、備份原vmmon.tar文件,膽子大的可忽略此步
cp /usr/lib/vmware/modules/source/vmmon.tar .?????????????????? //最后有個(gè)點(diǎn),別忘了

3、提取壓縮包
tar xf vmmon.tar

4、下載新的vmmon包

VMware workstation pro 14下載地址:

wget?-O?./vmmon-only/linux/hostif.c?https://raw.githubusercontent.com/mkubecek/vmware-host-modules/fadedd9c8a4dd23f74da2b448572df95666dfe12/vmmon-only/linux/hostif.c

本地下載

VMware workstation pro 12.5下載地址:

wget?-O?./vmmon-only/linux/hostif.c?https://raw.githubusercontent.com/mkubecek/vmware-host-modules/b50848c985f1a6c0a341187346d77f0119d0a835/vmmon-only/linux/hostif.c

本地下載

5、將新修改的文件包裝成一個(gè)壓縮包替換原始文件
sudo tar cf /usr/lib/vmware/modules/source/vmmon.tar vmmon-only

6、重新編譯vmware內(nèi)核模塊
sudo vmware-modconfig --console --install-all

7、重啟物理機(jī)
sudo reboot

訂閱我們的電子報(bào)刊,掌握最新資訊

博文天下

Prev Next
關(guān)于柯瑞德信息系統(tǒng)有限公司

關(guān)于柯瑞德信息系統(tǒng)有限公司

將您企業(yè)中的IT部門的職能全部或部分外包,集中精力發(fā)展您企業(yè)的核心業(yè)務(wù)! ? ??????? 蘇州柯瑞德信息系統(tǒng)有限公司是一家...

弱電工程簡(jiǎn)介

綜合布線 智能家居 程控?cái)?shù)字電話 閉路監(jiān)控 防盜報(bào)警 智能一卡通 背景音樂(lè)及公共廣播

公司簡(jiǎn)介

蘇州柯瑞德信息系統(tǒng)是一家優(yōu)秀的專注于為中小型企業(yè)提供信息系統(tǒng)集成服務(wù)的企業(yè)。我們的IT工程師都具備國(guó)際認(rèn)證的微軟、思科等專家證書,我們以專業(yè)的服務(wù)、合...

快速聯(lián)系我們






智能家居

Prev Next
什么是門禁 ? 當(dāng)前常見(jiàn)門禁系統(tǒng)的種類有哪些?各有什么優(yōu)缺點(diǎn)?

什么是門禁 ? 當(dāng)前常見(jiàn)門禁系統(tǒng)的種類有哪些?各有什么優(yōu)缺點(diǎn)…

門禁 , 又稱出入管理控制系統(tǒng) 通道管理系統(tǒng). 是一種管理人員進(jìn)出的數(shù)字化智能管理系統(tǒng) .原始的門禁系統(tǒng)概念其實(shí)早就在我們生活 中。例如:我們家家...

電子圍欄與紅外對(duì)射的區(qū)別

電子圍欄與紅外對(duì)射的區(qū)別

??????? 隨著我國(guó)經(jīng)濟(jì)建設(shè)的發(fā)展,周界安全防范工作正日益引起重視,電子圍欄的出現(xiàn)徹底改變了人們對(duì)安全防護(hù)工作理念的認(rèn)識(shí)。   我國(guó)周界安全...

智能一卡通管理系統(tǒng)

智能一卡通管理系統(tǒng)

  智能一卡通管理系統(tǒng)(Smart Manager) ,即一卡通行解決方案,本系統(tǒng)集合門禁、考勤、消費(fèi)、停車場(chǎng)、電梯、巡更、電子地圖、管理中...

在線狀態(tài)

目前有 78?游客 和 0個(gè)會(huì)員 在線