欧美一区二区三区老妇人-欧美做爰猛烈大尺度电-99久久夜色精品国产亚洲a-亚洲福利视频一区二区

Centos7操作系統(tǒng)搭建Snipe-IT資產(chǎn)管理系統(tǒng)

一、介紹

創(chuàng)新互聯(lián)公司是一家專注于成都網(wǎng)站設(shè)計、網(wǎng)站制作與策劃設(shè)計,武都網(wǎng)站建設(shè)哪家好?創(chuàng)新互聯(lián)公司做網(wǎng)站,專注于網(wǎng)站建設(shè)10多年,網(wǎng)設(shè)計領(lǐng)域的專業(yè)建站公司;建站業(yè)務(wù)涵蓋:武都等地區(qū)。武都做網(wǎng)站價格咨詢:18980820575

????Snipe-IT 是一個免費的開源IT資產(chǎn)管理web應(yīng)用程序。是一款基于Laravel5.4的免費的開源IT資產(chǎn)管理系統(tǒng)。Snipe-IT用于IT資產(chǎn)管理,IT部門可通過它能夠跟蹤誰擁有哪些筆記本電腦,何時購買、包含哪些軟件許可證和可用的附件等。

????主要的功能特性:可托管在云主機、強大的REST API、快速更新、保證APP和Platform的安全性、一鍵備份、LDAP登錄/用戶同步。

二、環(huán)境準備

? ? 此時安裝使用的系統(tǒng)如下:

????1、操作系統(tǒng):

????Centos7.6:?CentOS Linux release 7.6.1810 (Core)?

????2、Apache

????????此系統(tǒng)搭建使用的是 Apache2.4.6

????3、PHP

????????此系統(tǒng)搭建使用的是 PHP7.2

????4、數(shù)據(jù)庫

????????此系統(tǒng)搭建使用的數(shù)據(jù)庫版本是:Mariadb5.5.60

三、安裝前準備

????1、系統(tǒng)更新,在此用的系統(tǒng)是最小化安裝的Centos7.6版本

????????yum -y install epel-release

????????yum update -y

????????Centos7操作系統(tǒng)搭建Snipe-IT資產(chǎn)管理系統(tǒng)

????2、使用yum安裝Apache 2.4.6

????????yum install -y httpd httpd-devel

????????Centos7操作系統(tǒng)搭建Snipe-IT資產(chǎn)管理系統(tǒng)

????????httpd -v

????????Centos7操作系統(tǒng)搭建Snipe-IT資產(chǎn)管理系統(tǒng)

????3、使用yum安裝Mariadb 數(shù)據(jù)庫

????????yum install -y mariadb mariadb-server

????????Centos7操作系統(tǒng)搭建Snipe-IT資產(chǎn)管理系統(tǒng)

????4、源碼安裝PHP、配置Apache支持

????????安裝PHP所需要的依賴環(huán)境

????????yum install -y make gcc wget openssl readline-devel openssl-devel libxslt-devel gmp-devel bzip2-devel freetype-devel libjpeg-devel php-mcrypt libmcrypt libmcrypt-devel? autoconf? freetype gd jpegsrc libmcrypt libpng libpng-devel libjpeg libxml2 libxml2-devel zlib curl curl-devel

????????Centos7操作系統(tǒng)搭建Snipe-IT資產(chǎn)管理系統(tǒng)

????下載PHP安裝包,并解壓:

????????cd /home

????????wget http://cn2.php.net/get/php-7.2.3.tar.gz/from/this/mirror

????????Centos7操作系統(tǒng)搭建Snipe-IT資產(chǎn)管理系統(tǒng)

????????tar zxvf mirror

????????Centos7操作系統(tǒng)搭建Snipe-IT資產(chǎn)管理系統(tǒng)

????對PHP7.2.3 進行源碼編譯安裝:

????? ?cd? php-7.2.3

????????ls

????????Centos7操作系統(tǒng)搭建Snipe-IT資產(chǎn)管理系統(tǒng)?

????????進行檢查配置:

????????./configure --prefix=/usr/local/php7.2.3 --with-config-file-path=/etc --enable-fpm --enable-inline-optimization --disable-debug --disable-rpath --enable-shared --enable-soap --with-apxs2=/usr/bin/apxs --with-libxml-dir --with-xmlrpc --with-openssl --with-mcrypt --with-mhash --with-pcre-regex --with-sqlite3 --with-zlib --enable-bcmath --with-iconv --with-bz2 --enable-calendar --with-curl --with-cdb --enable-dom --enable-exif --enable-fileinfo --enable-filter --with-pcre-dir --enable-ftp --with-gd --with-openssl-dir --with-jpeg-dir --with-png-dir --with-zlib-dir --with-freetype-dir --enable-gd-native-ttf --enable-gd-jis-conv --with-gettext --with-gmp --with-mhash --enable-json --enable-mbstring --enable-mbregex --enable-mbregex-backtrack --with-libmbfl --with-onig --enable-pdo --with-MySQLi=mysqlnd --with-pdo-mysql=mysqlnd --with-zlib-dir --with-pdo-sqlite --with-readline --enable-session --enable-shmop --enable-simplexml --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-wddx --with-libxml-dir --with-xsl --enable-zip --enable-mysqlnd-compression-support --with-pear --enable-opcache

????????(PS:此操作步驟大概檢查一分鐘左右,只要不出錯,就一直執(zhí)行,直到出現(xiàn)下面界面:)

????????Centos7操作系統(tǒng)搭建Snipe-IT資產(chǎn)管理系統(tǒng)

????????以上檢查沒有錯誤之后,下面就開始進行安裝和編譯了:

????????make && make install

????????(PS:此過程大概會持續(xù)三到五分鐘左右,根據(jù)自己的設(shè)備性能決定,只要不報錯,就等待自行安裝,直至出現(xiàn)下面的界面:)

????????Centos7操作系統(tǒng)搭建Snipe-IT資產(chǎn)管理系統(tǒng)

? ? 等待以上的安裝完成后,下面需要配置php的環(huán)境變量:

????????vim /etc/profile

????????在該文件的最下面添加以下的信息:

?????????PATH=$PATH:/usr/local/php7.2.3/bin

????????export PATH

????????Centos7操作系統(tǒng)搭建Snipe-IT資產(chǎn)管理系統(tǒng)

????? ? 使其環(huán)境變量生效:?

????????source /etc/profile

????????配置php-fpm,完成以下的操作:

????????cd /home/php-7.2.3

????????cp php.ini-production /etc/php.ini

????????cp /usr/local/php7.2.3/etc/php-fpm.conf.default /usr/local/php7.2.3/etc/php-fpm.conf

????????cp /usr/local/php7.2.3/etc/php-fpm.d/www.conf.default /usr/local/php7.2.3/etc/php-fpm.d/www.conf

????????cp sapi/fpm/init.d.php-fpm /etc/init.d/php-fpm

????????chmod +x /etc/init.d/php-fpm

????????Centos7操作系統(tǒng)搭建Snipe-IT資產(chǎn)管理系統(tǒng)

????????啟動 php-fpm

????????service php-fpm start

????????Centos7操作系統(tǒng)搭建Snipe-IT資產(chǎn)管理系統(tǒng)

????????查看開啟狀態(tài):

????????lsof -i:9000

????????(PS:此次未安裝lsof,可使用yum先安裝lsof)

????????Centos7操作系統(tǒng)搭建Snipe-IT資產(chǎn)管理系統(tǒng)

????????Centos7操作系統(tǒng)搭建Snipe-IT資產(chǎn)管理系統(tǒng)

????????修改httpd.conf文件

????????vim /etc/httpd/conf/httpd.conf

????????需要修改的信息如下:

????????(1)在AddType application*后面加如下一行

????????AddType application/x-httpd-php .php .phtml

????????(2)在DirectoryIndex index.html加上index.php

????????DirectoryIndex index.php index.html

????????(3)確保httd.conf文件中包含以下字段,如不包含則加入此字段? (已存在,不存在需要加上)

????????LoadModule php7_module? ? ? ? /usr/lib64/httpd/modules/libphp7.so

????????Centos7操作系統(tǒng)搭建Snipe-IT資產(chǎn)管理系統(tǒng)

????????Centos7操作系統(tǒng)搭建Snipe-IT資產(chǎn)管理系統(tǒng)

????????Centos7操作系統(tǒng)搭建Snipe-IT資產(chǎn)管理系統(tǒng)

????????重啟 httpd服務(wù):

????????service httpd restart

????????Centos7操作系統(tǒng)搭建Snipe-IT資產(chǎn)管理系統(tǒng)

????????檢驗httpd的PHP支持和版本信息:

????? ?echo "<?php phpinfo(); ?>" >> /var/www/html/index.php

????????重啟服務(wù)和查看httpd狀態(tài):

????????systemctl restart httpd

????????systemctl status httpd

????????Centos7操作系統(tǒng)搭建Snipe-IT資產(chǎn)管理系統(tǒng)

????????Centos7操作系統(tǒng)搭建Snipe-IT資產(chǎn)管理系統(tǒng)

????????瀏覽器輸入服務(wù)器地址,檢驗PHP是否安裝成功:

????????(PS:操作此步驟之前,需要關(guān)閉服務(wù)器的防火墻,或者添加一下命令:

    1. firewall-cmd --permanent --zone=public --add-port=80/tcp

  1. systemctl restart firewalld.service)否則瀏覽器不能正常顯示。

  2. Centos7操作系統(tǒng)搭建Snipe-IT資產(chǎn)管理系統(tǒng)

三、安裝Snipe-IT

????1、初始化并創(chuàng)建snipeit數(shù)據(jù)庫

????????service mariadb start? ? ?# 啟動maraidb服務(wù)

????????Centos7操作系統(tǒng)搭建Snipe-IT資產(chǎn)管理系統(tǒng)

????????mysql_secure_installation? ? ?#初始化數(shù)據(jù)庫服務(wù)

????????Centos7操作系統(tǒng)搭建Snipe-IT資產(chǎn)管理系統(tǒng)

????????Centos7操作系統(tǒng)搭建Snipe-IT資產(chǎn)管理系統(tǒng)

????????登陸數(shù)據(jù)庫,創(chuàng)建對應(yīng)用戶及對應(yīng)的數(shù)據(jù)庫

????????mysql -u root -p

????????

????????mysql> create database snipeit;

????????mysql> grant all on snipeit.* to 'snipeit'@'%' identified by '324215';

????????mysql> flush privileges;

????????mysql> exit

????????Centos7操作系統(tǒng)搭建Snipe-IT資產(chǎn)管理系統(tǒng)

????2、安裝composer

????????什么是composer:

????????Composer 是由 Jordi Boggiano 和 Nils Aderman 創(chuàng)造的一個命令行工具,它的使命就是幫你為項目自動安裝所依賴的開發(fā)包。Composer 中的很多理念都借鑒自 npm 和 Bundler,如果你對這兩個工具有所了解的話,就會在 composer 中發(fā)現(xiàn)他們的身影。Composer 包含了一個依賴解析器,用來處理開發(fā)包之間復(fù)雜的依賴關(guān)系;另外,它還包含了下載器、安裝器等有趣的東西。

????????下載并安裝compose:

????????cd

????????curl -sS https://getcomposer.org/installer | php

????????mv /root/composer.phar /usr/bin/composer

????????Centos7操作系統(tǒng)搭建Snipe-IT資產(chǎn)管理系統(tǒng)

????3、安裝snipeit

????????cd /var/www

????????yum install -y git

????????git clone https://github.com/snipe/snipe-it snipe-it

????????Centos7操作系統(tǒng)搭建Snipe-IT資產(chǎn)管理系統(tǒng)

????????Centos7操作系統(tǒng)搭建Snipe-IT資產(chǎn)管理系統(tǒng)

????????編輯配置文件

????????cd /var/www/snipe-it

????????sudo cp .env.example .env

????????vim .env

????????Centos7操作系統(tǒng)搭建Snipe-IT資產(chǎn)管理系統(tǒng)

????????cd /var/www

????????yum install -y git

????????git clone https://github.com/snipe/snipe-it snipe-it

????????APP_URL=192.168.201.102? ? ? ?#填入地址

????????APP_TIMEZONE='Asia/Shanghai' #填入國家地址

?

????????DB_DATABASE=snipeit? ?#數(shù)據(jù)庫名稱

????????DB_USERNAME=snipeit? ?#數(shù)據(jù)庫用戶名

????????DB_PASSWORD=324215? ?#數(shù)據(jù)庫密碼

?

????????其中

????????APP_DEBUG=false

????????調(diào)試的時候請更改為true

????????Centos7操作系統(tǒng)搭建Snipe-IT資產(chǎn)管理系統(tǒng)

????????更改目錄權(quán)限:

????????chown -R apache:apache storage public/uploads

????????chmod -R 755 storage

????????chmod -R 755 public/uploads

????????Centos7操作系統(tǒng)搭建Snipe-IT資產(chǎn)管理系統(tǒng)

????????使用composer安裝PHP依賴

????????composer install --no-dev --prefer-source

????????Centos7操作系統(tǒng)搭建Snipe-IT資產(chǎn)管理系統(tǒng)

????????(PS:正在安裝中,此步驟安裝時間會較長,請耐心等待。。。)

????????Centos7操作系統(tǒng)搭建Snipe-IT資產(chǎn)管理系統(tǒng)

????????(中間可能會出現(xiàn)這樣的一個錯誤,先不用理會,等待繼續(xù)安裝)

????????Centos7操作系統(tǒng)搭建Snipe-IT資產(chǎn)管理系統(tǒng)

????????(PS:此過程安裝了大概兩個小時,終于安裝成功了。出現(xiàn)以上界面)

????????如果安裝時間過長,可以修改源之后重新安裝嘗試

????????composer config -g repo.packagist composer https://packagist.phpcomposer.com

????????生成 app_key

????????php artisan key:generate

????????Centos7操作系統(tǒng)搭建Snipe-IT資產(chǎn)管理系統(tǒng)

????4、修改Apache配置文件,創(chuàng)建虛擬主機

????????vim /etc/httpd/conf.d/snipeit.example.com.conf

????????具體配置信息如下:? ?????

????????<VirtualHost *:80>

? ????????? ServerName snipeit.example.com

? ?????????DocumentRoot /var/www/snipe-it/public

? ????????? <Directory /var/www/snipe-it/public>

? ? ????????? ? Options Indexes FollowSymLinks MultiViews

? ? ????????? ? AllowOverride All

? ? ????????? ? Order allow,deny

? ????????? ? ? allow from all

? ????????? </Directory>

????????</VirtualHost>

????

????????Centos7操作系統(tǒng)搭建Snipe-IT資產(chǎn)管理系統(tǒng)

????????重啟Apache 服務(wù)并查看Apache狀態(tài):

????????systemctl restart httpd

????????systemctl enable httpd

????????systemctl status httpd

????????Centos7操作系統(tǒng)搭建Snipe-IT資產(chǎn)管理系統(tǒng)

????????目前,Snipe-IT已經(jīng)安裝完成,就下來需要進行查錯和安裝前配置檢查

四、排除及遇到的問題

????1、關(guān)閉系統(tǒng)的selinux:

????????vim /etc/sysconfig/selinux?

????????Centos7操作系統(tǒng)搭建Snipe-IT資產(chǎn)管理系統(tǒng)

????2、安裝前檢查報錯

????????瀏覽器輸入服務(wù)器IP地址:

????????Centos7操作系統(tǒng)搭建Snipe-IT資產(chǎn)管理系統(tǒng)

????3、創(chuàng)建用戶, 處理錯誤:

????????Centos7操作系統(tǒng)搭建Snipe-IT資產(chǎn)管理系統(tǒng)

????????出現(xiàn)以上的錯誤,應(yīng)該是數(shù)據(jù)庫的問題,修改 .env 文件:

????????cd?/var/www/snipe-it

????????vim .env

????????Centos7操作系統(tǒng)搭建Snipe-IT資產(chǎn)管理系統(tǒng)

????????此篇文章的環(huán)境,數(shù)據(jù)庫和服務(wù)器是安裝再同一臺服務(wù)器上,修改DB_HOST=172.31.14.167(服務(wù)器地址)

????????systemctl restart mariadb? ?# 重啟maraidb服務(wù)

????????systemctl enable mariadb

????????systemctl status mariadb

????????Centos7操作系統(tǒng)搭建Snipe-IT資產(chǎn)管理系統(tǒng)

????4、繼續(xù)檢查錯誤和創(chuàng)建用戶

????????Centos7操作系統(tǒng)搭建Snipe-IT資產(chǎn)管理系統(tǒng)

????5、填寫用戶信息:

????????Centos7操作系統(tǒng)搭建Snipe-IT資產(chǎn)管理系統(tǒng)

?五、界面展示:

????????Centos7操作系統(tǒng)搭建Snipe-IT資產(chǎn)管理系統(tǒng)

??????1、關(guān)閉調(diào)試模式:

????????cd /var/www/snipe-it

????????vim .env

????????Centos7操作系統(tǒng)搭建Snipe-IT資產(chǎn)管理系統(tǒng)

????2、重啟httpd服務(wù)

????????systemctl restart httpd

????3、瀏覽器重新打開服務(wù)器地址:? ??

????????Centos7操作系統(tǒng)搭建Snipe-IT資產(chǎn)管理系統(tǒng)

????????? 以上步驟已經(jīng)將snipe-IT系統(tǒng)安裝完成,已經(jīng)能正常的顯示為中文版本。

????

????????

????????

????????

????????

????????

????????

????????

????????

????????

????????

????????

????????

????????

????????

????????

????????

??????

????????

????????

網(wǎng)頁題目:Centos7操作系統(tǒng)搭建Snipe-IT資產(chǎn)管理系統(tǒng)
轉(zhuǎn)載注明:http://chinadenli.net/article30/goijpo.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供服務(wù)器托管網(wǎng)站內(nèi)鏈微信小程序Google搜索引擎優(yōu)化企業(yè)網(wǎng)站制作

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

成都app開發(fā)公司