• Introduction to the battle of urlos – making lap Website Environment


    1. Make lap image1.1. Log in to the host machine using SSH, create the dockerfiel file and fill in the following contents FROM php:7.2.16-apache-stretch ENV TIME_ZONE Asiz/Shanghai RUN sed -i ‘s~//.*.debian.org~//mirrors.aliyun.com~’ /etc/apt/sources.list \ && apt-get update \ && apt-get install -y libxml2-dev libicu-dev libzip-dev \ && docker-php-ext-install zip bcmath intl mbstring mysqli pdo_mysql exif sockets […]

  • Solve the case sensitive problem of Linux + Apache server URL


    Today, synchronization encountered a problem. When entering the URL address in the browser address bar, you must be case sensitive to access the page normally. The website server is Linux + Apache The main reason for this phenomenon is the lack of the spelling module, so as long as it is loaded in the corresponding […]

  • Ubuntu build lamp


    setup script After installing apache2 and updating the source with apt get update, switch to administrator rootapt-get install apache2 Install the PHP module,apt-get install php5 Install MySQL database,apt-get install mysql-server mysql-client Install other modules, libapache2-mod-php5, libapache2-mod-auth-mysql, PHP5 mysql, PHP5 GD Test whether Apache works normally. Open the browser, enter the IP address xxx.xxx.xxx.xxx, and see […]

  • Personal articles sorting


    Spring Festival has nothing to do with your spare time. Look at the articles you have written on the segmentfault. Unexpectedly, there are 20 articles in all aspects. Then sort them out and make them convenient for yourself and others to check. CSS Notes on CSS background size property On vertical align Collection of CSS […]

  • CentOS lets Apache Web page display Chinese explanation


    There is a language option in the settings. You can choose to modify the language or modify the configuration file Edit the file / etc / sysconfig / I18N. The modified contents are as follows: LANG=”zh_CN.GB18030″ SUPPORTED=”zh_CN.GB18030:zh_CN:zh:en_US.UTF-8:en_US:en” SYSFONT=”latarcyrheb-sun16″ /Etc / sysconfig / I18N the system locale is stored here. I18N is the abbreviation of international […]

  • Comparing Apache with nginx


    1. Advantages of nginx over Apache:Lightweight, the same as web services, takes less memory and resources than ApacheAnti concurrency, nginx handles requests asynchronously and non blocking, while Apache is blocking. Under high concurrency, nginx can keep low resources, low consumption and high performanceHighly modular design, relatively simple to write modulesActive community, fast production of various […]

  • Detailed understanding and comparative analysis of Apache server, Tomcat and nginx


    1 problem Apache is used by the company’s server, PHP language is used in the background, and Linux C / C + + is used by the server. You will often hear about Apache server, and then java used by the company’s server before the internship, and then vaguely remember to use nginx reverse proxy […]

  • Let mobile phone access local Apache server under Windows


    A. Configure the Wamp server environment B. Configure httpd.conf to open the vhosts extension B. View the IPv4 address of the computer C. Configure hosts file D. Configure httpd-vhosts.conf file E. View firewall settings D. test Use the mobile phone and other devices on the same network as the server computer, open the browser, input […]

  • Apache log cutting


    Apache logging Recently, the server was collected by others, but the previous logs were recorded in a file, which was very inconvenient to view, so we had to modify the configuration againMy environment is xampp, so the configuration code is as follows: add or replace each virtual host configuration in Vhost ErrorLog “|bin/rotatelogs.exe -l logs/error-%Y-%m-%d.log […]

  • Thinking about the process of creating serverlocator instance of Artemis core from URI


    background There is a paragraph in broker.xml: <connectors> <!– Connector used to be announced through cluster connections and notifications –> <connector name=”artemis”>tcp://localhost:61618</connector> </connectors> So, how does the URI “TCP: / / localhost: 61618” in Artemis resolve to serverlocator? URI factory In Artemis, URI is processed by urifactory class.The urifactory class is located in the org.apache.activemq.artemis.utils.uri […]

  • Using API blueprint document to create mock server


    When the front and back end cooperate with the development, there is often such a demand:“Have you defined the interface? Can you help me start a mock server first? “So, how can we avoid the unnecessary waiting in the time difference between the front and back end development? API blueprint, maybe it’s the gospel you […]

  • Configuration and optimization of PHP FPM


    CentOS and other Linux platforms /usr/local/php/php /usr/local/php/etc/php.ini /usr/local/php/sbin/php-fpm /usr/local/php/etc/php-fpm.conf Mac platform /usr/bin/php /etc/php.ini /usr/bin/php-fpm /etc/php-fpm.conf Because I developedMacMainly, so use the MAC environment configuration to learn. PHP FPM configuration details This is a detailed php-fpm.conf configuration of search. I will modify it accordingly. Of course, the PHP manual also has a detailed explanation: http://php.net/manual/zh/inst pid […]