91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

理論+實操 :源碼編譯安裝LAMP

發布時間:2020-08-06 14:53:08 來源:網絡 閱讀:233 作者:wx5d8b05ec4cbc3 欄目:系統運維

前言

  • Apache網站服務
  • MySQL服務
  • LAMP架構應用實例
    LAMP解釋
    linux apache mysql php/python
    理論+實操 :源碼編譯安裝LAMP

一 : Apache簡介

1.1 Apache 起源

  • 源于a patchy server, 著名的開源Web服務軟件
  • 1995年時,發布apache服務程序的1.0版本
  • 有apache軟件基金會(ASF)負責維護
  • 官方站點:http://httpd.apache.org/

1.2 apache 官方網頁

理論+實操 :源碼編譯安裝LAMP

1.3 apache 主要特點

  • 開放源代碼、跨平臺應用
  • 支持多種網頁編程語言
  • 模塊化設計、運行穩定、良好的安全性

    1.4 軟件版本

  • 1.X
  • 目前最高版本的是1.3,運行穩定
  • 向下兼容性較好,但缺乏一些較新的功能
  • 2.X
  • 目前最高版本是2.6
  • 具有更多的功能特性
  • 與1.X相比,配置管理風格存在較大差異

二 :編譯安裝httpd服務器

1.1 編譯安裝的優點

  • 具有較大的自由度,功能可定制
  • 可及時獲得最新的軟件版本
  • 普遍適用于大多數Linux版本,便于移植使用

    1.2 獲得apache服務器的軟件包

  • 參考地址:http://httpd.apache.org/download.cgi

    1.2 編譯安裝httpd步驟

    1.2.1 準備工作

  • 卸載httpd及相關依賴包————把環境清空

1.2.2 解壓相關文件

  • 掛載共享文件夾,使用mount.cifs,若是沒有該命令,需要安裝一個cifs-utils組件
    
    [root@localhost ~]# cd /
    [root@localhost /]# mkdir abc
    [root@localhost /]# mount.cifs //192.168.254.10/linuxs /abc
    Password for root@//192.168.254.10/linuxs:  
    [root@localhost /]# cd /abc
    [root@localhost abc]# ls
    apr-1.4.6.tar.gz           MAC 記錄與端口掃描腳本.txt
    apr-util-1.4.1.tar.gz      pxe.txt
    dhcp.txt                   vsftpd添加虛擬用戶腳本.TXT
    extundelete-0.2.4.tar.bz2  修改網卡為靜態IP地址.txt
    httpd-2.4.2.tar.gz         開發系統監控腳本.txt
    john-1.8.0.tar.gz          引導系統腳本.txt
    LAMP-C7                    測試網段是否存活,測試存活網段的21端口.txt
    LAMP-C7.rar                監控系統內存cpu磁盤容量1.0.txt
    LAMP-php5.6.txt
    [root@localhost abc]# cd LAMP-C7/
    [root@localhost LAMP-C7]# ls
    apr-1.6.2.tar.gz         httpd-2.4.29.tar.bz2  php-5.6.11.tar.bz2
    apr-util-1.6.0.tar.gz    LAMP-php5.6.txt
    Discuz_X2.5_SC_UTF8.zip  mysql-5.6.26.tar.gz
    [root@localhost LAMP-C7]# 
- 解壓壓縮包,apr* 是支持跨平臺的組件

```css
[root@localhost LAMP-C7]# tar xvjf httpd-2.4.29.tar.bz2 -C /opt
root@localhost LAMP-C7]# tar xvzf apr-util-1.6.0.tar.gz -C /opt
[root@localhost LAMP-C7]# tar xvzf apr-1.6.2.tar.gz -C /opt
[root@localhost LAMP-C7]# cd /opt
[root@localhost opt]# ls
apr-1.6.2  apr-util-1.6.0  httpd-2.4.29  rh
[root@localhost opt]# mv apr-1.6.2/ httpd-2.4.29/s
server/  srclib/  support/ 
[root@localhost opt]# mv apr-1.6.2/ httpd-2.4.29/srclib/apr
[root@localhost opt]# mv apr-util-1.6.0/ httpd-2.4.29/srclib/apr-util
[root@localhost opt]# ls
httpd-2.4.29  rh
[root@localhost opt]# 
[root@localhost opt]# cd httpd-2.4.29/
[root@localhost httpd-2.4.29]# ls
ABOUT_APACHE     buildconf       httpd.dsp       libhttpd.mak   README.cmake
acinclude.m4     CHANGES         httpd.mak       LICENSE        README.platforms
Apache-apr2.dsw  CMakeLists.txt  httpd.spec      Makefile.in    ROADMAP
Apache.dsw       config.layout   include         Makefile.win   server
apache_probes.d  configure       INSTALL         modules        srclib
ap.d             configure.in    InstallBin.dsp  NOTICE         support
build            docs            LAYOUT          NWGNUmakefile  test
BuildAll.dsp     emacs-style     libhttpd.dep    os             VERSIONING
BuildBin.dsp     httpd.dep       libhttpd.dsp    README
  • yum安裝編譯包,環境包,gcc、gcc-c++、make、pcre-devel、expat-devel、perl,安裝過了就不用安了
[root@localhost yum.repos.d]# yum install gcc gcc-c++ pcre-devel pcre expat-devel.x86_64 make -y
Installed:
  expat-devel.x86_64 0:2.1.0-10.el7_3        gcc.x86_64 0:4.8.5-39.el7             
  gcc-c++.x86_64 0:4.8.5-39.el7              pcre-devel.x86_64 0:8.32-17.el7       

Dependency Installed:
  cpp.x86_64 0:4.8.5-39.el7            glibc-devel.x86_64 0:2.17-292.el7           
  glibc-headers.x86_64 0:2.17-292.el7  kernel-headers.x86_64 0:3.10.0-1062.9.1.el7 
  libmpc.x86_64 0:1.0.1-3.el7          libstdc++-devel.x86_64 0:4.8.5-39.el7       

Updated:
  make.x86_64 1:3.82-24.el7                                                        

Dependency Updated:
  glibc.x86_64 0:2.17-292.el7            glibc-common.x86_64 0:2.17-292.el7       
  libgcc.x86_64 0:4.8.5-39.el7           libgomp.x86_64 0:4.8.5-39.el7            
  libstdc++.x86_64 0:4.8.5-39.el7       

Complete!
  • 在軟件解壓包目錄下,去配置相關屬性:
    ./configure \ 啟用配置
    --prefix=/usr/local/httpd \ 指定安裝路徑
    --enable-so \ 核心模塊功能開啟
    --enable-rewrite \ 開啟重寫功能,用于編輯防盜鏈等功能
    --enable-charset-lite \ 開啟字符集功能
    --enable-cgi \ 開啟識別不同的網關接口功能
[root@localhost httpd-2.4.29]# ./configure \
> --prefix=/usr/local/httpd \
> --enable-so \
> --enable-rewrite \
> --enable-charset-lite \
> --enable-cgi
configure: summary of build options:

    Server Version: 2.4.29
    Install prefix: /usr/local/httpd
    C compiler:     gcc -std=gnu99
    CFLAGS:          -g -O2 -pthread  
    CPPFLAGS:        -DLINUX -D_REENTRANT -D_GNU_SOURCE  
    LDFLAGS:           
    LIBS:             
    C preprocessor: gcc -E
[root@localhost httpd-2.4.29]# 

然后make編譯

[root@localhost httpd-2.4.29]# make
make          makedb        makedeltarpm  makedumpfile  
[root@localhost httpd-2.4.29]# make
make[4]: Leaving directory `/opt/httpd-2.4.29/modules/mappers'
make[3]: Leaving directory `/opt/httpd-2.4.29/modules/mappers'
make[2]: Leaving directory `/opt/httpd-2.4.29/modules'
make[2]: Entering directory `/opt/httpd-2.4.29/support'
make[2]: Leaving directory `/opt/httpd-2.4.29/support'

make[1]: Leaving directory `/opt/httpd-2.4.29'
[root@localhost httpd-2.4.29]# 

接著make install 安裝

[root@localhost httpd-2.4.29]# make install
mkdir /usr/local/httpd/man
mkdir /usr/local/httpd/man/man1
mkdir /usr/local/httpd/man/man8
mkdir /usr/local/httpd/manual
make[1]: Leaving directory `/opt/httpd-2.4.29'
[root@localhost httpd-2.4.29]# 

中間如果出現錯錯誤,就需要重新查看錯在哪里
此時已經安裝好了,軟件目錄在/usr/local/httpd,
注意:手動編譯安裝的核心在配置兩個文件,分別是主配置文件和啟動腳本文件
先去配置腳本文件

[root@localhost httpd-2.4.29]# cd /usr/local/
[root@localhost local]# ls
bin  etc  games  httpd  include  lib  lib64  libexec  sbin  share  src
[root@localhost local]# cd httpd/
[root@localhost httpd]# ls
bin    cgi-bin  error   icons    lib   man     modules
build  conf     htdocs  include  logs  manual
[root@localhost httpd]# cd htdocs/
[root@localhost htdocs]# ls
index.html                      '首頁'
[root@localhost htdocs]# cd..
bash: cd..: command not found...
[root@localhost htdocs]# cd ..
[root@localhost httpd]# cd conf
[root@localhost conf]# ls
extra  httpd.conf  magic  mime.types  original          '有主配置文件'
[root@localhost conf]# 
[root@localhost conf]# cd ..
[root@localhost httpd]# ls
bin    cgi-bin  error   icons    lib   man     modules
build  conf     htdocs  include  logs  manual
[root@localhost httpd]# cd bin/
[root@localhost bin]# ls
ab            apu-1-config  dbmmanage    fcgistarter   htdigest  httxt2dbm
apachectl     apxs          envvars      htcacheclean  htpasswd  logresolve
apr-1-config  checkgid      envvars-std  htdbm         httpd     rotatelogs
[root@localhost bin]# 
  • 開始配置腳本
    
    [root@localhost bin]# cp /usr/local/httpd/bin/apachectl /etc/init.d/httpd
    //把/usr/local/httpd/bin/aoachectl 文件 復制到/etc/init.d/下,更名為httpd
    [root@localhost bin]# vim /etc/init.d/httpd
    //編輯腳本文件,增加注釋信息
    #!/bin/sh
    # chkconfig: 35 85 21               '增加 //35級別自動運行  第85個啟動 第21個關閉'
    # description: Apache is a World Wide Web server        '增加'
    #
    [root@localhost bin]# chkconfig --add httpd
    //把腳本文件加入到service服務器中,讓service去管理
    [root@localhost bin]# chkconfig --level 35 httpd on
    //這條命令是讓httpd開啟自啟動,優先級別35,可設可不設
- 腳本配置完畢,接下來開始配置主配置文件

[root@localhost bin]# cd ..
[root@localhost httpd]# ls
bin cgi-bin error icons lib man modules
build conf htdocs include logs manual
[root@localhost httpd]# cd conf/
[root@localhost conf]# pwd
/usr/local/httpd/conf
[root@localhost conf]# ln -s /usr/local/httpd/conf/httpd.conf /etc/httpd.conf
//新建配置文件軟連接到到/etc/目錄下,便于去找
[root@localhost conf]#

- 修改配置文件

[root@localhost conf]# vim /etc/httpd.conf
:set nu
51 Listen 192.168.247.147:80
52 #Listen 80
197 ServerName www.gsy.com:80

[root@localhost conf]# cd /usr/local/httpd/bin/
[root@localhost bin]# ls
ab apu-1-config dbmmanage fcgistarter htdigest httxt2dbm
apachectl apxs envvars htcacheclean htpasswd logresolve
apr-1-config checkgid envvars-std htdbm httpd rotatelogs
[root@localhost bin]# ln -s /usr/local/httpd/bin/ /usr/local/bin/
//把安裝目錄/usr/local/httpd/bin/
中的腳本軟連接到/usr/local/bin下,便于使用,可以制表符補全
[root@localhost bin]#

- 查詢驗證是否加入到/bin中

[root@localhost bin]# httpd -t
Syntax OK
[root@localhost bin]#

- 開啟服務,關閉防火墻增強服務

[root@localhost bin]# service httpd start
[root@localhost bin]#
[root@localhost bin]# netstat -natp | grep 'httpd'
tcp 0 0 192.168.247.147:80 0.0.0.0:* LISTEN 16643/httpd
[root@localhost bin]#
[root@localhost bin]# systemctl stop firewalld.service
[root@localhost bin]# setenforce 0


![在這里插入圖片描述](https://img-blog.csdnimg.cn/20191210164703445.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0xmd3Rob3RwdA==,size_16,color_FFFFFF,t_70)

- 可以修改首頁信息

[root@localhost bin]# cd /usr/local/
[root@localhost local]# ls
bin etc games httpd include lib lib64 libexec sbin share src
[root@localhost local]# cd httpd/
[root@localhost httpd]# ls
bin cgi-bin error icons lib man modules
build conf htdocs include logs manual
[root@localhost httpd]# cd htdocs/
[root@localhost htdocs]# ls
index.html
[root@localhost htdocs]# cat index.html
<html><body><h2>It works!</h2></body></html>
[root@localhost htdocs]# vim index.html
[root@localhost htdocs]# cat index.html
<html><body><h2>從萌新到小白</h2></body></html>
[root@localhost htdocs]#

顯示結果如下,因為沒有使用utf-8 字符集
![在這里插入圖片描述](https://img-blog.csdnimg.cn/20191210191446573.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0xmd3Rob3RwdA==,size_16,color_FFFFFF,t_70)
# 三:安裝MySQL
## 3.1 步驟一樣,先去解壓源碼包

[root@localhost LAMP-C7]# tar zxvf mysql-5.6.26.tar.gz -C /opt

## 3.2 然后安裝環境包

[root@localhost LAMP-C7]# yum install -y ncurses-devel autoconf cmake
已安裝:
ncurses-devel.x86_64 0:5.9-14.20130511.el7_4

作為依賴被升級:
ncurses.x86_64 0:5.9-14.20130511.el7_4
ncurses-base.noarch 0:5.9-14.20130511.el7_4
ncurses-libs.x86_64 0:5.9-14.20130511.el7_4
已安裝:
autoconf.noarch 0:2.69-11.el7 cmake.x86_64 0:2.8.12.2-2.el7

作為依賴被安裝:
m4.x86_64 0:1.4.16-10.el7 perl-Data-Dumper.x86_64 0:2.145-3.el7

完畢!

## 3.3 環境包安裝完畢,接下來就開始配置屬性
切換到源碼包內可以發現到里面并沒有configure腳本,有一個cmake腳本,這也就是為什么需要安裝cmake環境包

[root@localhost LAMP-C7]# cd /opt/mysql-5.6.26/
[root@localhost mysql-5.6.26]# ls
BUILD dbug libmysqld regex unittest
BUILD-CMAKE Docs libservices scripts VERSION
client Doxyfile-perfschema man sql vio
cmake extra mysql-test sql-bench win
CMakeLists.txt include mysys sql-common zlib
cmd-line-utils INSTALL-SOURCE mysys_ssl storage
config.h.cmake INSTALL-WIN-SOURCE packaging strings
configure.cmake libevent plugin support-files
COPYING libmysql README tests
[root@localhost mysql-5.6.26]# cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DEXTRA_CHARSETS=all -DSYSCONFIDIR=/etc -DMYSQL_DATADIR=/home/mysql/ -DMYSQL_UNIX_ADDR=/home/mysql/mysql.sock

## 3.4 make編譯,會很久

[root@localhost mysql-5.6.26]# make
Scanning dependencies of target my_safe_process
[100%] Building CXX object mysql-test/lib/My/SafeProcess/CMakeFiles/my_safe_process.dir/safe_process.cc.o
Linking CXX executable my_safe_process
[100%] Built target my_safe_process

## 3.5 接著make install 

[root@localhost mysql-5.6.26]# make install
-- Installing: /usr/local/mysql/sql-bench/innotest2
-- Installing: /usr/local/mysql/sql-bench/test-wisconsin
-- Installing: /usr/local/mysql/sql-bench/compare-results
-- Installing: /usr/local/mysql/sql-bench/bench-init.pl

## 3.6依舊是配置主配置文件和腳本文件

[root@localhost mysql-5.6.26]# cp /usr/local/mysql/support-files/my-default.cnf /etc/my.cnf
cp:是否覆蓋"/etc/my.cnf"? y
[root@localhost mysql-5.6.26]# cp /usr/local/mysql/support-files/mysql.server /etc/init.d/mysqld
[root@localhost mysql-5.6.26]# chmod 755 /etc/init.d/mysqld
[root@localhost mysql-5.6.26]# chkconfig --add /etc/init.d/mysqld
[root@localhost mysql-5.6.26]# chkconfig --level 35 mysqld on
[root@localhost mysql-5.6.26]# cd /usr/local/mysql
[root@localhost mysql]# ls
bin data include lib mysql-test scripts sql-bench
COPYING docs INSTALL-BINARY man README share support-files
[root@localhost mysql]# ln -s bin/* /usr/local/bin/
[root@localhost mysql]# useradd -s /sbin/nologin mysql
[root@localhost mysql]# chown -R mysql.mysql /usr/local/mysql/

## 3.7 初始化數據庫

[root@localhost mysql]# /usr/local/mysql/scripts/mysql_install_db --user=mysql --ldata=/var/lib/mysql --basedir=/usr/local/mysql --datadir=/home/mysql
New default config file was created as /usr/local/mysql/my.cnf and
will be used by default by the server when you start it.
You may edit this file to change server settings

WARNING: Default config file /etc/my.cnf exists on the system
This file will be read by default by the MySQL server
If you do not want to use this, either remove it, or use the
--defaults-file argument to mysqld_safe when starting the server

## 3.8 接下來配置腳本文件

[root@localhost lib]# vim /etc/init.d/mysqld
45 basedir=/usr/local/mysql
46 datadir=/home/mysql

## 3.9 配置完畢,可以開啟服務,查看接口

[root@localhost lib]# service mysqld start
Starting MySQL SUCCESS!
[root@localhost lib]# netstat -natp | grep 3306
tcp6 0 0 :::3306 :::* LISTEN 54080/mysqld
[root@localhost lib]#

# 四:安裝PHP
## 4.1 安裝依賴包,解壓源碼包

[root@localhost lib]# yum -y install gd libpng libpng-devel pcre pcre-devel libxml2-devel libjpeg-devel

[root@localhost LAMP-C7]# tar xjvf php-5.6.11.tar.bz2 -C /opt

## 4.2 然后切換到源碼包內去配置屬性

[root@localhost LAMP-C7]# cd /opt/php-5.6.11/
[root@localhost php-5.6.11]# ls
configure pear sapi

里面是configure腳本文件

[root@localhost php-5.6.11]# ./configure --prefix=/usr/local/php5 --with-gd --with-zlib --with-apxs2=/usr/local/httpd/bin/apxs --with-mysql=/usr/local/mysql --with-config-file-path=/usr/local/php5 --enable-mbstring
Thank you for using PHP.

config.status: creating php5.spec
config.status: creating main/build-defs.h
config.status: creating scripts/phpize
config.status: creating scripts/man1/phpize.1
config.status: creating scripts/php-config
config.status: creating scripts/man1/php-config.1
config.status: creating sapi/cli/php.1
config.status: creating sapi/cgi/php-cgi.1
config.status: creating ext/phar/phar.1
config.status: creating ext/phar/phar.phar.1
config.status: creating main/php_config.h
config.status: executing default commands

## 4.3 然后make

[root@localhost php-5.6.11]# make
Build complete.
Don't forget to run 'make test'.

## 4.4 make install

[root@localhost php-5.6.11]# make install
Wrote PEAR system config file at: /usr/local/php5/etc/pear.conf
You may want to add: /usr/local/php5/lib/php to your php.ini include_path
/opt/php-5.6.11/build/shtool install -c ext/phar/phar.phar /usr/local/php5/bin
ln -s -f phar.phar /usr/local/php5/bin/phar
Installing PDO headers: /usr/local/php5/include/php/ext/pdo/

## 4.5 編譯安裝結束,開始配置主配置文件和啟動腳本
主配置文件此時安裝目錄內沒有,需要從源碼包內復制一份過去

[root@localhost php-5.6.11]# cp php.ini-development /usr/local/php5/php.ini
[root@localhost php-5.6.11]# ln -s /usr/local/php5/bin/* /usr/local/bin/

## 4.6 接下來需要配置httpd的配置文件,使apache 支持php

[root@localhost php-5.6.11]# vim /etc/httpd.conf
256 DirectoryIndex index.html index.php
394 AddType application/x-httpd-php .php
395 AddType application/x-httpd-php-source .phps

html網頁
![在這里插入圖片描述](https://img-blog.csdnimg.cn/20191211234548373.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0xmd3Rob3RwdA==,size_16,color_FFFFFF,t_70)
## 4.7 新建一個php網頁

[root@localhost php-5.6.11]# cd /usr/local/httpd/htdocs/
[root@localhost htdocs]# ls -l
總用量 4
-rw-r--r--. 1 root root 45 6月 12 2007 index.html
[root@localhost htdocs]# cp index.html index.php
[root@localhost htdocs]# vim index.php
[root@localhost htdocs]# cat index.php
<?php
phpinfo();
?>
[root@localhost htdocs]#

[root@localhost htdocs]# service httpd restart
[root@localhost htdocs]# service mysqld restart
Shutting down MySQL.. SUCCESS!
Starting MySQL. SUCCESS!

## 4.8 注意:
若是沒有下面這一行,php需要重新安裝

[root@localhost htdocs]# vim /etc/httpd.conf
156 LoadModule php5_module modules/libphp5.so


![在這里插入圖片描述](https://img-blog.csdnimg.cn/20191211235518538.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0xmd3Rob3RwdA==,size_16,color_FFFFFF,t_70)
# 五 :安裝一個論壇體驗一波
## 5.1 創建mysql管理員

[root@localhost /]# mysqladmin -uroot -p password "abc123"
Enter password:
Warning: Using a password on the command line interface can be insecure.
[root@localhost /]#

## 5.2 設置bbs數據庫

[root@localhost /]# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.6.26 Source distribution

Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> show databases
-> ;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| test |
+--------------------+
4 rows in set (0.01 sec)

mysql> create database bbs
-> ;
Query OK, 1 row affected (0.00 sec)

mysql> use bbs;
Database changed
mysql> show tables
-> ;
Empty set (0.00 sec)

mysql> show databases
-> ;
+--------------------+
| Database |
+--------------------+
| information_schema |
| bbs |
| mysql |
| performance_schema |
| test |
+--------------------+
5 rows in set (0.00 sec)

mysql> grant all on bbs.* to 'bbsuser'@'%' identified by 'admin123';
Query OK, 0 rows affected (0.01 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.01 sec)

mysql> exit
Bye


安裝論壇中
bbs 數據庫   授權給bbsuser用戶    @ % 百分號代表所有終端     flush 刷新數據庫

## 5.4  解壓bbs軟件包

[root@localhost LAMP-C7]# unzip Discuz_X2.5_SC_UTF8.zip -d /opt
Archive: Discuz_X2.5_SC_UTF8.zip
[root@localhost LAMP-C7]# cd /opt
[root@localhost opt]# ls
httpd-2.4.29 mysql-5.6.26 php-5.6.11 readme rh upload utility
[root@localhost opt]# cp -r upload /usr/local/httpd/htdocs/bbs
[root@localhost opt]# cd /usr/local/httpd/htdocs/bbs/
[root@localhost bbs]# ls
admin.php connect.php forum.php member.php search.php uc_server
api cp.php group.php misc.php source userapp.php
api.php crossdomain.xml home.php plugin.php static
archiver data index.php portal.php template
config favicon.ico install robots.txt uc_client
[root@localhost bbs]# chown -R daemon ./config
[root@localhost bbs]# chown -R daemon ./data
[root@localhost bbs]# chown -R daemon ./uc_client
[root@localhost bbs]# chown -R daemon ./uc_server/data
t@localhost bbs]# service httpd restart



![在這里插入圖片描述](https://img-blog.csdnimg.cn/2019121201092356.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0xmd3Rob3RwdA==,size_16,color_FFFFFF,t_70)
## 5.5 在線安裝bbs
### 5.5.1 點我同意
![在這里插入圖片描述](https://img-blog.csdnimg.cn/20191212010950635.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0xmd3Rob3RwdA==,size_16,color_FFFFFF,t_70)
### 5.5.2 最下面,點擊下一步
![在這里插入圖片描述](https://img-blog.csdnimg.cn/20191212011040600.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0xmd3Rob3RwdA==,size_16,color_FFFFFF,t_70)
### 5.5.3 全新安裝,點擊下一步
![在這里插入圖片描述](https://img-blog.csdnimg.cn/20191212011117926.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0xmd3Rob3RwdA==,size_16,color_FFFFFF,t_70)
### 5.5.4 按照最開始的配置去設置,下面的管理員密碼是新創建的,得記牢
![在這里插入圖片描述](https://img-blog.csdnimg.cn/20191212011615866.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0xmd3Rob3RwdA==,size_16,color_FFFFFF,t_70)
### 5.5.5 出現這個界面就重新輸入地址進入首頁

![在這里插入圖片描述](https://img-blog.csdnimg.cn/20191212011631466.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0xmd3Rob3RwdA==,size_16,color_FFFFFF,t_70)
![在這里插入圖片描述](https://img-blog.csdnimg.cn/20191212011751996.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0xmd3Rob3RwdA==,size_16,color_FFFFFF,t_70)
### 5.5.6 在服務器地址后面加/bbs/admin.php會到后臺管理員登陸界面
![在這里插入圖片描述](https://img-blog.csdnimg.cn/20191212011845888.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0xmd3Rob3RwdA==,size_16,color_FFFFFF,t_70)
向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

开原市| 新蔡县| 宕昌县| 丰顺县| 潜江市| 宜都市| 滕州市| 连江县| 山阴县| 绥阳县| 武功县| 灌云县| 那曲县| 射阳县| 赤峰市| 内丘县| 宜章县| 新闻| 巴彦淖尔市| 罗源县| 拉萨市| 沭阳县| 兴仁县| 黄龙县| 墨竹工卡县| 浮梁县| 凤山县| 渝北区| 红原县| 嵩明县| 越西县| 株洲市| 井冈山市| 孟州市| 临桂县| 嘉禾县| 青海省| 中阳县| 南溪县| 子长县| 昂仁县|