洞察探索open banking如何通过小程序容器技术助力金融企业实现数据安全和数字化转型
704
2022-09-26
Centos7.6手工编译安装PHP7.2+nginx1.19.1并部署禅道
本文是从Windows上将禅道12.3.1迁移到Centos7.6
安装步骤如下:
curl -o /usr/local/src/php-7.2.32.tar.gz install gcc libxml2-devel openssl-devel curl-devel -ycd /usr/local/srctar -zxvf php-7.2.32.tar.gzcd php-7.2.32#编译安装./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --enable-fpm --with-fpm-user=nobody --with-fpm-group=nobody --enable-mbstring --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-curl --with-zlib --with-opensslmake&&make install#配置phpcp /usr/local/src/php-7.2.32/php.ini-production /usr/local/php/etc/php.iniln -s /usr/local/php/etc/php.ini /etc/php.ini cp /usr/local/php/etc/php-fpm.conf.default /usr/local/php/etc/php-fpm.conf cp /usr/local/src/php-7.2.32/sapi/fpm/init.d.php-fpm /etc/init.d/php-fpm 增加可执行权限 chmod +x /etc/init.d/php-fpm 修改配置文件php.ini date.timezone = PRC session.save_path="/var/lib/php/session" 记得要手动创建下这个目录 mkdir -p /var/lib/php/session cd /usr/local/php/etc/php-fpm.d/*.confcp conf.default confservice php-fpm startyum install -y gcc gcc-c++ pcre pcre-devel zlib zlib-devel openssl openssl-devel#-安装nginxcurl -o /usr/local/src/nginx-1.19.1.tar.gz /usr/local/src/tar -zxvf nginx-1.19.1.tar.gz#编译安装nginx./configure --prefix=/usr/local/nginx --with---with---pid-path=/usr/local/nginx/conf/nginx.pid --with-pcremake&&make install#建立软链接cd /etc/ln -s /usr/local/nginx/conf/nginx.conf nginx.confcd /usr/sbinln -s /usr/local/nginx/sbin/nginx nginx#-禅道#1、禅道项目管理软件源码-#、一定要-中文版,否则后面不能继续进行curl -o /usr/local/src/ZenTaoPMS.12.3.1.zip /usr/local/srcunzip ZenTaoPMS.12.3.1.zipmdir /opt/zentao/mv zentaopms/* /opt/zentao/#配置权限chmod o=rwx -R /opt/zentao/tmp/chmod o=rwx -R /opt/zentao/o=rwx -R /var/lib/php/session#编辑配置vim /etc/nginx.confworker_processes 4;pid conf/nginx.pid;location / { root /opt/zentao/ index index.php index.html index.htm;}location ~ \.php$ { root /opt/zentao/ fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params;}chown -R nobody:nobody /var/lib/phpservice php-fpm restartnginx -s reload#创建禅道账户create database zentao;CREATE USER 'zentao'@'localhost' IDENTIFIED BY 'Honghu@2019-2018';GRANT SELECT, INSERT, UPDATE, DELETE, ALTER, CREATE, DROP, INDEX, LOCK TABLES, REFERENCES ON zentao.* TO 'zentao'@'localhost';FLUSH PRIVILEGES;CREATE USER 'zentao'@'127.0.0.1' IDENTIFIED BY 'Honghu@2019-2018';GRANT SELECT, INSERT, UPDATE, DELETE, ALTER, CREATE, DROP, INDEX, LOCK TABLES, REFERENCES ON zentao.* TO 'zentao'@'127.0.0.1';FLUSH PRIVILEGES;CREATE USER 'zentao'@'%' IDENTIFIED BY 'Honghu@2019-2018';GRANT SELECT, INSERT, UPDATE, DELETE, ALTER, CREATE, DROP, INDEX, LOCK TABLES, REFERENCES ON zentao.* TO 'zentao'@'%';FLUSH PRIVILEGES;#数据迁移1、导出禅道表结果,远程连接过去执行2、将xampp\zentao\chmod -R 777 /opt/zentao/www/data/upload/
本文参考:https://yq.aliyun.com/articles/645384
安装成功后如下
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~