C ++ basic algorithm learning-lamp-out problem, algorithm lamp-out
There is a matrix composed of buttons. Each row has 6 buttons, 5 in total.-Each button has a light on it.-When a button is pressed, the button and its surrounding position (top, bottom,The lights on the left and right change the status.26 lights out POJ1222-If the light turns on, it will be exting
, execute: FLUSH host.Open_files_limit = 65535# MySQL Open file descriptor limit, default minimum 1024Skip-locking# avoid MySQL external lock, reduce the chance of error increase stability.Wait_timeout = 8# indicates idle connection timeout time, default is 28800s, this parameter is used with Interactive_timeout, that is, for wait_timeout to take effect, must be set interactive_timeoutInteractive_timeout = 8Long_query_time = 1#慢查询日志的超时时间Log_slow_queries =/path/to/slow_queries# Slow query log pat
Site Development Overview
Lamp Development Overview
HTML Basics
CSS Basics
Div+css
Javascript
Jquery (Ajax)
WAMP Environment Construction
PHP basic syntax, variables. Data types, expressions, constants, process controls, functions. Array
Hyper-Global Array
Object oriented
String processing
The regular form of the expression
File processing
Error handling
Exception mechanism
Date and time
Recent time will learn PHP full stack development, will write a series of articles to summarize the process of learning to encourage each other.The first article records the installation of the lamp environment0. Install Apache Web serverUpdate the system before installingsudo apt-get update sudo apt-get Dist-upgradeThen install Apachesudo apt-get Install Apache2At this point in the browser to enter localh
management, we use the name above.$#通过vim编辑配置文件$# First you can see this copy of the configuration file as followsServerName www.imooc.comDocumentroot/webdata/imooc/wwwOptions FollowSymLinksAllowOverride NoneOptions Indexes followsymlinks MultiViewsAllowOverride NoneOrder Allow,denyAllow from all#..... Do not want to close configuration items here#将以上暗红色标记的参数从上到下分别改为Www.imooc.com instead/webdata/imooc/www instead/webdata/imooc/www/instead#保存退出, modify the Imooc_oa configuration file in a simila
Build a LAMP environment learning record under Ubuntu Server, named ubuntulamp
I have learned some knowledge about linux over the past few days. Here I will record the learning records.
# Stop the mysql service before data migration
$
# Change the user group and user and folder permissions of the target directory to mysql: mysql 0700
$
$
# To prevent exceptions,
found that the missing Perl module Dumper package, we tried to find the yum list |grep perl |grep-i dumper //-I ignore case We can try to install both packages to see if we can solve the problem, You can also install both, and then initialize. We yum installed the first package, once again initialized, found another problem, really frustrated, but do not fear, the Internet checked the next solution: the lack of Libaio library files, directly put a big recruit, Yum install-y libaio* Later
First, the premise of site constructionSetting up the lamp running environment.Download the website program, here with Discuz X 3.2 as an exampleDiscuz Program:Simplified Chinese GBK Http://download.comsenz.com/DiscuzX/3.2/Discuz_X3.2_SC_GBK.zipTraditional Chinese BIG5 http://download.comsenz.com/DiscuzX/3.2/Discuz_X3.2_TC_BIG5.zipSimplified UTF-8 http://download.comsenz.com/DiscuzX/3.2/Discuz_X3.2_SC_UTF8.zipTraditional UTF-8 http://download.comsenz.
:80Modified to:ServerName localhost:805. Test parsing PHPvim/usr/local/apache2/htdocs/1.phpWrite:Phpinfo ();?>After saving, continue testing:Curl localhost/1.phpIf you can't resolve PHP File:See Apache loaded the PHP No:Ls/usr/local/apache2/modules/libphp5.soLDD you can see if the load is successful.look at the loaded PHP success is not:Grep-i ' AddType '/usr/local/apche2/conf/httpd.confand then restart Apache , and then try to seeTo test the connectivity of MySQL:Write a file and access it with
List |grep ExpatInstalling Expat-develYum install-y expat-devel cd /usr/local/src/httpd-2.4.27
./configure \
--prefix=/usr/local/apache2.4 --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --enable-so --enable-mods-shared=most The backslash here is the caret, plus it allows us to write a line of commands into multiple lines yum provides pcre-config
yum install -y pcre-devel
make make install
ls /usr/local/apache2.4/modules
/usr/local/apache2.4/bin/httpd -M //查看加载的模块 /usr/local/a
corresponding configuration can be added.For the convenience of testing, we set a subdirectory onlyphp to illustrate its rolephp_admin_value open_basedir "/data/wwwroot/123.com/onlyphp/:/tmp/"curl -x127.0.0.1:80 http://123.com/123.php -Icurl -x127.0.0.1:80 http://123.com/onlyphp/123.php -INote that this configuration is only for PHP operations, restricting PHP parsing, and not restricting access to other HTML. However, the above example is only to illustrate the operating principle of the Open_
the terms of this license, you must abort || The installation process at this point. |+--------------------------------------------------------------------+Thank for using PHP.Config.status:creating Php5.specConfig.status:creating Main/build-defs.hConfig.status:creating scripts/phpizeConfig.status:creating scripts/man1/phpize.1Config.status:creating Scripts/php-configConfig.status:creating Scripts/man1/php-config.1Config.status:creating SAPI/CLI/PHP.1Config.status:creating SAPI/CGI
/conf/httpd.conf//Search Httpd-vhost, remove #, meaning to open a virtual host call, so httpd master configuration file will invoke the virtual host configuration file, The httpd-vhost.conf file as shown belowvim /usr/local/apache2/conf/extra/httpd-vhosts.conf //改为如下/usr/local/apache2/bin/apachectl –t/usr/local/apache2/bin/apachectl gracefulReload Configurationmkdir -p /data/wwwroot/admin.com /data/wwwroot/123.comCreate a Site Directoryecho "just a virtualhost" gt; /data/wwwroot/admin.com/index.
/local/apache2.4/conf/httpd.conf//Search LogformatLogformat "%h%l%u%t \"%r\ "%>s%b \"%{referer}i\ "\"%{user-agent}i\ "" combinedLogformat "%h%l%u%t \"%r\ "%>s%b" commonThe main configuration file provides two kinds of access log format let us choose, where the virtual host is the default is common, we see combined format richer, he is more referer and user-agent, we will edit the virtual host configuration file, Change the common to combined, revisit the test, and view the log.Change the virtual
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.