久久久精品网站怎么装置??????详细办法说明

泉源:证券时报网作者:
字号

添加或修改以下行:

zend_extension=opcache.soopcache.enable=1opcache.memory_consumption=128opcache.max_accelerated_files=10000opcache.revalidate_freq=2

网络用户反响并举行刷新:

用户谈论:通过谈论、邮件等方法获取用户的反响,,,,,,相识他们的需求和建议,,,,,,可以资助你一直刷新网站,,,,,,提高用户知足度。。。。。。

问卷视察:通过问卷视察?相识用户对网站的体验和建议,,,,,,可以使用GoogleForms或SurveyMonkey等工具建设问卷。。。。。。

社交媒体互动:在社交媒体平台上与用户互动,,,,,,获取他们的反响和建议。。。。。。

用户测试:按期举行用户测试,,,,,,视察用户怎样使用网站,,,,,,找出可能的问题和刷新点。。。。。。

ginx设置:

server{listen443ssl;server_nameyourdomain.com;ssl_certificate/etc/letsencrypt/live/yourdomain.com/fullchain.pem;ssl_certificate_key/etc/letsencrypt/live/yourdomain.com/privkey.pem;root/path/to/your-project;indexindex.phpindex.html;location/{try_files$uri$uri//index.php?$query_string;}location~\.php${includesnippets/fastcgi-php.conf;fastcgi_passunix:/var/run/php/php7.4-fpm.sock;}location~/\.ht{denyall;}}避免SQL注入和XSS攻击

添加以下内容:

server{listen80;server_nameyourdomain.com;root/path/to/your-project;indexindex.phpindex.html;location/{try_files$uri$uri//index.php?$query_string;}location~\.php${includesnippets/fastcgi-php.conf;fastcgi_passunix:/var/run/php/php7.4-fpm.sock;}location~/\.ht{denyall;}}

使用SSH客户端登录到效劳器。。。。。。

sshusername@your-server-ip克隆代码客栈gitclonehttps://github.com/your-repo/your-project.gitcdyour-project装置依赖composerinstall设置数据库

pache设置:

ServerAdminwebmaster@localhostDocumentRoot/path/to/your-projectServerNameyourdomain.comSSLEngineonSSLCertificateFile/etc/letsencrypt/live/yourdomain.com/fullchain.pemSSLCertificateKeyFile/etc/letsencrypt/live/yourdomain.com/privkey.pemOptionsIndexesFollowSymLinksAllowOverrideAllRequireallgrantedErrorLog${APACHE_LOG_DIR}/error.logCustomLog${APACHE_LOG_DIR}/access.logcombined

硬件与软件需求

效劳器选择:建议选择一台具有合适设置的效劳器,,,,,,详细来说,,,,,,建议至少有4GB的内存和2个CPU焦点。。。。。。若是用户量较大,,,,,,建议更高设置。。。。。。操作系统:最推荐使用Linux操作系统,,,,,,如Ubuntu20.04或CentOS7,,,,,,由于它们在Web开发中体现优异,,,,,,且支持种种Web效劳器软件。。。。。。

数据库:需要装置MySQL或MariaDB数据库,,,,,,用于存储网站的种种数据。。。。。。Web效劳器:推荐使用Apache或Nginx,,,,,,它们都是高效且稳固的Web效劳器软件。。。。。。

校对:刘欣(1C0m4pJyqZtPma0S7t9ZFfz4hTykKag)

责任编辑: 谢颖颖
为你推荐
用户谈论
登录后可以讲话
网友谈论仅供其表达小我私家看法,,,,,,并不批注证券时报态度
暂无谈论