成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

在openSUSE上安裝和配置LAMP

系統 Linux
大家都在Linxu和Window上安裝LAMP,那現在我教大家在openSUSE上轉,其實和他們差不多,就點細節差別。

openSUSE上安裝和配置LAMP步驟如下:

  LAMP是由Apache MySQL PHP組成的,是在Linux下***的軟件組合之一,目前互聯網上有很多網站運行在LAMP服務器上。

  Linux - 是富有情味的開源操作系統;Apache - 這個星球上大師級的WEB服務器;MySQL - 是你喜愛的開源數據庫軟件;PHP - 受歡迎的WEB編程語言。

  安裝LAMP服務最簡單的方法是在YaST圖形界面,按以下步驟安裝:

  1、Computer – YaST – Install Software - 選擇過渡”Patterns”,然后選擇并接受”Web and LAMP”。但是這種方法我們安裝了不需要的服務,如DNS,Perl模塊等。

  我喜歡手動安裝一個LAMP服務。

  所以不要浪費時間了,讓我們立即讓LAMP在你的openSUSE上運行起來吧。我用的是openSUSE11.0,這個安裝過程同樣適用早期的10.3、10.2版本,11.1版本也同樣適應。

  安裝和配置Apache2服務

  安裝Apache服務器

  opensuse11:~#yast2 –install apache2

  這就安裝了Apache服務,用下面的代碼檢驗:

  opensuse11:~ # rcapache2 status

  Checking for httpd2: unused

  這是告訴我們,Apache服務已經安裝上,但是還沒有運行。為了測試Apache是否能夠運行正常,在/srv/www/htdocs/目錄建立一個index.html文件。這個目錄是Apache默認的網站根目錄。

  opensuse11:~ # cd /srv/www/htdocs

  opensuse11:~ # vi index.html

  在上面鍵入鍵入文本“Welcome to openSUSE 11.1”。

  啟動Apache2服務

  現在啟動Apache2服務,我們看看是否運行正常。

  opensuse11:~ # rcapache2 start

  Starting httpd2 (prefork) done

  現在開啟一個瀏覽器如Firefox,輸入http://localhost,那么現在就可以看到剛才你輸入的文本了,下面我們安裝PHP5。

  安裝PHP5

  opensuse11:~ # yast2 –install php5 php5-mysql apache2-mod_php5

  這將安裝PHP5, PHP5-MySQL 模塊和Apache2 PHP5 模塊。為了讓Apache2支持PHP5模塊,現在重啟Apache2讓改動生效。

  opensuse11:~ # rcapache2 restart

  Syntax OK

  Shutting down httpd2 (waiting for all children to terminate) done

  Starting httpd2 (prefork) done

  安裝和配置MySQL

  opensuse11:~ # yast2 –install mysql mysql-tools

  這樣就把MySQL數據庫和可選安裝的mysql-tools(設置工具)安裝到openSUSE上了。按以下命令驗證是否已經安裝上:

  opensuse11:~ # rcmysql status

  Checking for service MySQL: unused

  上面的輸出顯示MySQL服務已經安裝,但是還沒有運行。

#p#

  啟動MySQL服務

  opensuse11:~ # rcmysql start

  Starting service MySQL done

  默認安裝是沒有root密碼的,但是root密碼是非常重要的。

  設置root密碼

  opensuse11:~ # mysqladmin -u root –p password rootpassword

  這是將root密碼設置為”rootpassword”。你可以設置一個安全適當的密碼。

  按以下操作檢查一下root密碼是否已經設置和MySQL Client是否可以登陸到MySQL服務器。

  opensuse11:~ # mysql -u root -p

  Enter password:

  Welcome to the MySQL monitor. Commands end with ; or \g.

  Your MySQL connection id is 1

  Server version: 5.0.51a SUSE MySQL RPM

  Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the buffer.

  mysql> show databases;

  +——————–+

  | Database |

  +——————–+

  | information_schema |

  | mysql |

  | test |

  +——————–+

  3 rows in set (0.04 sec)

  mysql>

  按以上操作,我用MySQL Client作為root登錄,輸入了剛才鍵入的密碼,列舉了數據庫。這樣就已經完全在openSUSE上安裝了LAMP服務。

  管理MySQL數據庫最簡易和流行的工具是phpMyAdmin,phpMyAdmin的安裝需要我們上面已經進行過的PHP5,Apache2環境,現在可以快速安裝和配置phpMyAdmin了。

  安裝phpMyAdmin

  opensuse11:~ # yast2 –install phpMyAdmin

  這就安裝了phpMyAdmin,并在/srv/www/htdocs/建立了phpMyAdmin目錄。進入該目錄,并利用config.sample.inc.php快速配置phpMyAdmin。

  opensuse11:~ # cd /srv/www/htdocs/phpMyAdmin

  opensuse11:~ # cp config.sample.inc.php config.inc.php

  查找下列語句修改為:

  $cfg['blowfish_secret'] = ‘mysqladmin’;

  在這里我設置了一個短語密碼 ‘mysqladmin’。

  按上面操作并設置了默認配置。 登錄http://localhost/phpMyAdmin 到phpMyAdmin 用root帳戶和剛才建立的密碼。

  RPM安裝MySQL

  rpm -ivh MySQL-server-4.0.16-0.i386.rpm

  rpm -ivh MySQL-client-4.0.16-0.i386.rpm

  http://www.linux-cn.com/html/database/mysql/20070422/9875.html

#p#

  Mono

  在 Apache2.2 下設置 Mono 的 ASP。Net

  在 Yast2控制中心里選 系統 -> 磁盤分區管理 , 點開左邊的樹,選擇分區,編輯,掛載 /mnt/Music (Music 是自己起的名字)。然后在 FSTAB 選項中,把 fmask 和 dmask 的值改為 000 ,完成。 就可以自動掛載并可讀寫了。

  經本人實驗, 在OpenSuse11.2 x64 系統下,Apache2.2 建虛擬目錄總出現 403 無權限錯誤,與此有關。

  另外,Ubuntu 下如果出現 403 , 用以下配置文件是正確的. 但是需要注意, NTFS 分區是不能 chmod 的 . 所以,要把 Web 站點放到 Linux分區上,再 sudo chmod -R 777 MyWeb

  在 /etc/apache2/config.d/ 下新建虛擬目錄的配置文件: MyTrade.conf (MyTrade 替換成你自己的虛擬目錄名,文件名需以 conf 結尾)

  Alias /MyTrade "/mnt/App/MonoApp/MyWebTradeSln/MyTrade"

  # MonoServerPath can be changed to specify which version of ASP.NET is hosted

  # mod-mono-server1 = ASP.NET 1.1 / mod-mono-server2 = ASP.NET 2.0

  # For SUSE Linux Enterprise Mono Extension, uncomment the line below:

  # MonoServerPath MyTrade "/opt/novell/mono/bin/mod-mono-server2"

  # For Mono on openSUSE, uncomment the line below instead:

  MonoServerPath MyTrade "/usr/bin/mod-mono-server2"

  # To obtain line numbers in stack traces you need to do two things:

  # 1) Enable Debug code generation in your page by using the Debug="true"

  # page directive, or by setting in the

  # application's Web.config

  # 2) Uncomment the MonoDebug true directive below to enable mod_mono debugging

  MonoDebug MyTrade true

  # The MONO_IOMAP environment variable can be configured to provide platform abstraction

  # for file access in Linux. Valid values for MONO_IOMAP are:

  # case

  # drive

  # all

  # Uncomment the line below to alter file access behavior for the configured application

  MonoSetEnv MyTrade MONO_IOMAP=all

  # Additional environtment variables can be set for this server instance using

  # the MonoSetEnv directive. MonoSetEnv takes a string of 'name=value' pairs

  # separated by semicolons. For instance, to enable platform abstraction *and*

  # use Mono's old regular expression interpreter (which is slower, but has a

  # shorter setup time), uncomment the line below instead:

  # MonoSetEnv MyTrade MONO_IOMAP=all;MONO_OLD_RX=1

  MonoApplications MyTrade "/MyTrade:/mnt/App/MonoApp/MyWebTradeSln/MyTrade"

  Options Indexes MultiViews

  Allow from all

  Order allow,deny

  MonoSetServerAlias MyTrade

  SetHandler mono

  SetOutputFilter DEFLATE

  SetEnvIfNoCase Request_URI "\.(?:gif|jpe?g|png)$" no-gzip dont-vary

  AddOutputFilterByType DEFLATE text/html text/plain text/xml text/javascript

  這樣就行了。

通過文章的介紹,想必大家都會在openSUSE上安裝和配置LAMP,希望本文對大家有幫助!

【編輯推薦】

  1. LAMP(Linux+Apache+Mysql+PHP)部署手冊
  2. LAMP安全加固之mysql篇
  3. LAMP安全加固之PHP篇
  4. LAMP安全加固之apache篇
  5. LAMP下虛擬主機用戶個人網頁的架設
  6. 從 WAMP 到 LAMP 看穿 LAMP
  7. 運用apt工具傻瓜式安裝、配置、拆卸、卸載LAMP
責任編輯:趙鵬 來源: 網絡轉載
相關推薦

2015-08-07 09:03:08

openSUSE軟件

2011-02-25 10:36:24

2011-03-23 09:31:42

LAMP安裝LAMP配置

2011-03-09 09:30:45

Linux安裝LAMP

2011-03-11 17:14:27

2014-02-19 14:54:58

CentOS 6.5Xen

2011-08-17 10:19:30

CentOSOpenStack N

2011-05-24 09:33:40

UbuntuOpenStackNova

2011-03-10 10:51:45

Ubuntu搭建LAMP

2010-06-08 17:26:36

OpenSUSE 安裝

2010-06-08 14:01:18

OpenSUSE 安裝

2011-03-09 10:52:36

CentOS安裝LAMP

2011-03-10 09:53:35

LinuxLAMP安裝

2011-03-23 11:24:09

2011-03-10 10:09:13

Ubuntu搭建LAMP

2011-03-10 11:06:02

Ubuntu搭建LAMP

2022-09-14 11:31:37

MySQL數據庫管理系統

2024-02-19 16:28:24

2010-06-11 14:50:48

虛擬機安裝openSU

2011-03-11 16:42:38

Ubuntu安裝LAMP
點贊
收藏

51CTO技術棧公眾號

主站蜘蛛池模板: 国产ts人妖另类 | 国产精品夜间视频香蕉 | 亚洲一区二区三区在线视频 | 亚洲成网 | 国产在线视频一区二区 | 欧美精品第三页 | 午夜视频在线播放 | 国产美女一区二区三区 | 中文字幕乱码视频32 | 精品视频久久久 | 亚洲国产精久久久久久久 | 精品伊人久久 | 国内自拍视频在线观看 | 中文字幕av在线播放 | 日本福利一区 | 欧美a∨ | www.啪啪.com| 国产综合久久 | 久久精品一区 | 精品久久亚洲 | 亚洲国产成人精品女人久久久 | 久久精品免费 | 日本三级网站在线观看 | 亚洲免费网站 | 国产91丝袜在线18 | 久久青草av | 午夜寂寞影院列表 | 欧美日韩一区在线 | www.欧美视频| 国产一区二区三区www | 日韩毛片免费看 | 国产精品久久久久久久久免费相片 | 日韩国产一区二区三区 | 国产成人短视频在线观看 | 日韩在线视频网址 | a级毛片免费高清视频 | 黄色一级免费 | 97超碰站 | 在线观看国产精品一区二区 | 中文字幕亚洲视频 | 人人草人人干 |