?咖啡壶链接地址:https://gitee.com/celaraze/chemex?_from=gitee_search
咖啡壶(Chemex)是一个轻量的、现代设计风格的 ICT 资产管理系统。得益于?Laravel?框架以及?Dcat Admin?开发平台,使其具备了优雅、简洁的优秀体验。 咖啡壶(Chemex) 是完全免费且开源的,任何人都可以无限制的修改代码以及部署服务,这对于很多想要对ICT资产做信息化管理的中小型企业来说,是一个很好的选择:低廉的成本换回的是高效的管理方案,同时又有健康的生态提供支持。
本文章仅个人学习使用作笔记记录。
1、安装php环境
# 安装yum-utils 工具
yum install -y yum-utils
# 安装依赖
yum install openssl-devel \
gcc gcc-++ gcc-c++ \
wget make libxml2 libxml2-devel \
openssl openssl-devel curl-devel \
libjpeg-devel libpng-devel \
freetype-devel bison autoconf \
sqlite-devel oniguruma-devel
# 更换yum源
sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum install https://rpms.remirepo.net/enterprise/remi-release-7.rpm
#为PHP 8启用流模块
sudo yum-config-manager --disable 'remi-php*'
sudo yum-config-manager --enable remi-php80
#安装PHP 8及扩展:
yum install php -y
yum install -y php-cli php-fpm \
php-mysqlnd php-zip php-devel \
php-gd php-mbstring php-curl \
php-xml php-pear php-bcmath \
php-json php-redis php-xmlrpc \
php-fileinfo php-mysqli
[root@localhost ~]# php -v
PHP 8.0.8 (cli) (built: Jun 29 2021 07:41:19) ( NTS gcc x86_64 )
Copyright (c) The PHP Group
Zend Engine v4.0.8, Copyright (c) Zend Technologies
# php 安装成功 修改php.ini文件
vim /etc/php.ini
zlib.output_compression = On
systemctl start php-fpm
?2、安装mysql数据库
#修改 yum源指向 清华大学镜像
vim /etc/yum.repos.d/mysql.repo
[mysql]
name= mysql8.0
baseurl=https://mirrors.tuna.tsinghua.edu.cn/mysql/yum/mysql-8.0-community-el7-x86_64/
enable=1
gpgcheck=0
yum clean all && yum makecache
yum install mysql-community-server -y
systemctl enable --now mysqld
grep "password" /var/log/mysqld.log
mysql -uroot -p
ALTER USER 'root'@'%' IDENTIFIED BY 'new password';
create database chemex_alone;
create user 'chemex'@'%' identifed by 'Newpwd@123';
grant all privileges on chemex_alone.* to 'chemex'@'%';
flush privileges
3、安装nginx
useradd www -s /sbin/nologin
tar zxf nginx-1.20.1.tar.gz -C /usr/local/
cd /usr/local/nginx-1.20.1
./configure --prefix=/usr/local/nginx --with-http_dav_module \
--with-http_stub_status_module --with-http_addition_module \
--with-http_sub_module --with-http_flv_module --with-http_mp4_module \
--with-http_ssl_module --user=www --group=www
make && make install
4、配置systemctl托管nginx
vim /usr/lib/systemd/system/nginx.service
[Unit]
Description=nginx
After=network.target remote-fs.target
[Service]
Type=forking
ExecStart=/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
ExecStop=/usr/local/nginx/sbin/nginx -s stop
ExecReload=/usr/local/nginx/sbin/nginx -s reload
[Install]
WantedBy=multi-user.target
systemctl daemon-reload && systemctl start nginx
?配置nginx.conf
server {
listen 80;
server_name localhost;
root /chemex/public;
location / {
index index.php index.html index.htm;
try_files $uri $uri/ /index.php?$args;
}
5、下载咖啡壶
yum install -y git
git clone https://gitee.com/celaraze/chemex.git
chmod 755 -R /chemex
chmod 777 -R /chemex/public/storage
cp .env.example .env
vim .env #安装配置文件要求配置
# 执行安装chemex
php artisan chemex:install
chmod 777 -R /chemex/storage
?访问:http://your_domain 默认账号密码:admin/admin
|