代码拉取完成,页面将自动刷新
JSON_UNESCAPED_UNICODE
git config --global credential.helper store
隐藏版本
expose_php = Off
避免脚本注入
cgi.fix_pathinfo = 0
server_tokens off
server {
listen 80 default_server;
server_name _;
return 444;
}
$user = 'root';
$pass = 'password';
$dsn = "mysql:host=127.0.0.1;dbname=test";
$db = new PDO($dsn, $user, $pass);
$sql = 'select version()';
$res = $db->query($sql)->fetchAll(2);
AddType application/x-httpd-php .php
LoadModule php7_module C:/...
PHPIniDir C:/...
curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh
vi /etc/yum.repos.d/nginx.repo
[nginx-stable]
name=nginx stable repo
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
gpgcheck=1
enabled=1
gpgkey=https://nginx.org/keys/nginx_signing.key
module_hotfixes=true
[nginx-mainline]
name=nginx mainline repo
baseurl=http://nginx.org/packages/mainline/centos/$releasever/$basearch/
gpgcheck=1
enabled=0
gpgkey=https://nginx.org/keys/nginx_signing.key
module_hotfixes=true
下载地址: https://mirrors.aliyun.com/composer/composer.phar
Windows:
echo @php "%~dp0composer.phar" %*>composer.bat
Linux:
mv composer.phar /usr/local/bin/composer
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
npm config set registry https://registry.npm.taobao.org
my.ini file
[mysqld]
# set basedir to your installation path
basedir=E:/mysql
# set datadir to the location of your data directory
datadir=E:/mydata/data
mysqld --initialize-insecure
mysqld --install
yum localinstall platform-and-version-specific-package-name.rpm
yum install mysql-community-server
ALTER USER 'root'@'localhost' IDENTIFIED BY '111!';
sqlite-devel oniguruma-devel oniguruma libcurl-devel libcurl libxml2-devel libxml2 openssl openssl-devel autoconf
./configure \
--prefix=/usr/local/php74 \
--enable-fpm \
--with-fpm-user=nginx \
--with-fpm-group=nginx \
--with-config-file-path=/usr/local/php74/etc \
--with-config-file-scan-dir=/usr/local/php74/etc/php.d \
--with-openssl \
--with-curl \
--enable-mbstring \
--with-mysqli=mysqlnd \
--enable-pcntl \
--with-pdo-mysql=mysqlnd \
--enable-mysqlnd
wget https://www.php.net/distributions/php-7.3.18.tar.gz
yum -y install libxml2-devel libxml2 openssl openssl-devel autoconf libcurl-devel libcurl gcc-c++
ps:1G内存添加swap,--disable-fileinfo
./configure \
--prefix=/usr/local/php73 \
--enable-fpm \
--with-fpm-user=nginx \
--with-fpm-group=nginx \
--with-config-file-path=/usr/local/php73/etc \
--with-config-file-scan-dir=/usr/local/php73/etc/php.d \
--with-openssl \
--with-curl \
--enable-mbstring \
--with-mysqli=mysqlnd \
--enable-pcntl \
--with-pdo-mysql=mysqlnd \
--enable-mysqlnd
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。