This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 将www用户添加到sunflower用户组中,-a代表append | |
sudo usermod -a -G sunflower www |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fatal error: Class 'PHPUnit_Framework_TestCase' not found | |
You want to use PHPUnit 6 | |
PHPUnit 6 requires PHP 7.0 or PHP 7.1. It introduces significant changes that require a migration of your existing test suite to PHPUnit 6. | |
If you use Composer to manage PHPUnit as a dependency of your project and want to use PHPUnit 6 then you should depend on "phpunit/phpunit": "^6.0" in your composer.json file. | |
If you use PHPUnit from a PHP archive (PHAR) and want to use PHPUnit 6 then you can download PHPUnit from https://phar.phpunit.de/phpunit.phar. | |
Below you find a list of things to do and keep in mind while migrating your existing test suite to PHPUnit 6: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget http://phar.phpunit.cn/phpunit.phar | |
wget https://phar.phpunit.de/phpunit-nightly.phar | |
chmod +x phpunit.phar | |
sudo mv phpunit.phar /usr/local/bin/phpunit | |
phpunit --version |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##Nginx安装指南 | |
#1、编译环境 | |
#ubuntu | |
apt-get install build-essential | |
apt-get install libtool | |
#centos | |
yum -y install gcc automake autoconf libtool make |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" | |
php -r "if (hash_file('SHA384', 'composer-setup.php') === '544e09ee996cdf60ece3804abc52599c22b1f40f4323403c44d44fdfdd586475ca9813a858088ffbc1f233e9b180f061') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" | |
php composer-setup.php | |
php -r "unlink('composer-setup.php');" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main() | |
{ | |
int a = 3; | |
int b = 2; | |
int array[3]; | |
array[0] = 1; | |
array[1] = 10; | |
array[2] = 100; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo $? | |
if [$? -eq 0]; then | |
# do something | |
else | |
# do something else | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "export LC_ALL=en_US.UTF-8" >> /etc/profile | |
source /etc/profile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SHOW ENGINES; |
NewerOlder