This article describes the deployment of a PHP application system in the kubernetes environment. The front-end Web uses nginx, middleware PHP to run in fastcgi way, the background database is supported by MySQL master and slave.Calls between service components take the form of DNS resolution service names, and data and configuration files are persisted using PV and PVC (based on NFS).First, create a PHP image file via Dockerfile# cat dockerfile FROM docker.io/openshift/base-centos7:latestMAINTAI
= 5Pm.min_spare_servers = 2Pm.max_spare_servers = 8PID =/usr/local/php5/var/run/php-fpm.pid650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/74/19/wKioL1YT4j3TNx8DAABWmFk6MIo965.jpg "style=" float: none; "title=" 17.png "alt=" Wkiol1yt4j3tnx8daabwmfk6mio965.jpg "/>The next step is to start php-fpm:# service PHP-FPM StartBy default, FPM listens on port 9000 of 127.0.0.1, and can also use the following command to verify that it is already list
", and iscsi01 just the opposite. That is, the iscsi01 Vmkernel is bound to the VMNIC2 physical network card, and Iscsi02 's vmkernel is bound to the VMNIC5 physical network card 650) this.width=650; "Style=" border-bottom:0px; border-left:0px; border-top:0px; border-right:0px "title=" clip_image017 "border=" 0 "alt=" clip_image017 "src=" http://s3.51cto.com/wyfs02/M00/58/43/ Wkiom1ss9ycg8yajaahfdusmlw8356.jpg "" 461 "height=" 569 "/> 19. Select "VSwitch" and select "Edit" 650) this.width=650; "
:
; cgi.fix_pathinfo=1Remove the preceding semicolon and replace it with the following:
Cgi.fix_pathinfo=1
Step Two: Installation and configuration of Nginx
First to the official website download the latest version of the Nginx, extract into the C-disk Wnmp directory, and renamed to Nginx. Next, we'll configure Nginx to work with PHP. Enter Nginx's conf directory, open nginx configuration file nginx.conf, find
Location/{
root html; #这里是站点的根目录
index index.html index.htm
}Chan
Tags: gitlabPerform sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production 检查提示Check GitLab API access: FAILED: Failed to connect to internal API View GITLAB/CONFIG/UNICORN.RB Listen"127.0.0.1:9000", :Tcp_nopush= true gitlab/config/gitlab.yml中填写的公网ipNETSTAT-NLTP View 127.0.0.1:9000 Telnet 127.0.0.1 9000 is OK, and Telnet public IP
Packages:ElectricfencePyyamlAntBabelBzrChrpathCMakeCompat-gcc-34Compat-gcc-34-c++Compat-gcc-34-g77Cvs-inetdDejagnuExpectGcc-gnatGcc-javaGcc-objcGcc-objc++ImakeJpackage-utilsKdewebdevKscLibstdc++-docsMercurialMod_dav_svnNasmPerltidyPython-docsPython-requestsPython-sixRpmdevtoolsRpmlintSystemtap-sdt-develSystemtap-serverWarning:group tools does not exist.Said so, that is, directly to the group under the common software, one-time installed!Switch to roo
Release version ubuntu17.04Cat Lsb-releaseDistrib_id=ubuntudistrib_release=17.04Distrib_codename=zestydistrib_description= "Ubuntu 17.04"View your own Linux kernel versionUname-aLinux Server1 4.10.0-19-generic #21-ubuntu SMP Thu Apr 6 17:04:57 UTC x86_64 x86_64 x86_64 Gnu/linKernel symbol Download:Http://ddebs.ubuntu.com/pool/main/l/linux/linux-image-4.10.0-19-generic-dbgsym_4.10.0-19.21_amd64.ddebsudo dpkg-i linux-image-4.10.0-19-generic-dbgsym_4.10.0-19.21_amd64.ddeb SYSTEMTAP Installation:su
interface theme of the Color-theme, C + + language editing strategies, code style settings scripts, various Emacs system settings), third-party expansion packages (template templates, programming support package Cedet, etc.). It makes no sense for every user to waste time making these configurations! Tools are always tools, we can't be slaves to tools, we can't waste a lot of our energy on configuration tools.It is noteworthy that the current emerging eclipse has a tendency towards this. But no
To establish the tablespace and the user's steps:UserCreate: Create user username identified by "password";Authorization: Grant create session to user name;Grant CREATE table to user name;Grant create tablespace to user name;Grant CREATE view to user name;Table SpaceCreate a tablespace (typically a table space with n stored data and an index space):Create tablespace table space nameDataFile ' Path (to build the path first) \***.dbf ' size *mTempfile ' path \***.dbf ' size *mAutoextend on-Automat
tablespace:
Alter user username quota Unlimited on table space;
or alter user username quota *m on table space;
Complete Example:
--Table space
CREATE tablespace SDT
DataFile ' F:\tablespace\demo ' size 800M
EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO;
--Index Table space
CREATE tablespace Sdt_index
DataFile ' F:\tablespace\demo ' size 512M
EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO;
--2.
Tags: style blog color os using ar sp div cThe basic method for using SqlCommand calls is as follows:New SqlCommand ("p_getcompanyinfo", conn); = CommandType.StoredProcedure; //Use a parameterized Query method to pass parameters like stored procedures New SqlParameter ("@Type""1"); Comm. Parameters.Add (para); = Comm. ExecuteScalar (). ToString ();To call a stored procedure using Sqldataadapert:In fact, in the beginning of the use of
First, review 1, process, thread, the process: the smallest resource allocation unit in the computer, data isolation, you can use multi-core, data is not a security thread: is the smallest CPU scheduling unit in the computer, data sharing, GIL, data Insecure association: is a part of the thread, is by the user To dispatch, data sharing, data security 2, synchronous, asynchronous, blocking, non-blockingAsync: Doing more than one thing at the same timeSynchronization: One thing is done and then th
ObjectiveThese days in order to familiarize yourself with the vue.js framework and the use of Webpack, you are ready to build a simple Web application that publishes and browses Markdwon. Originally wanted to use bash scripts and BusyBox httpd as a background service, but bash script parsing and generation of JSON is very inconvenient, and in the Java language and feel that deployment is not convenient, so think of the use of node. js, so there is this blog post. (At the end of this article is t
1.1.1 Install Nginx and PHP through Yum, change the address of nginx inside Fastcgi_pass PHP can not request the normal1.1.1.1 problem Restore:The nginx+php server address is 10.0.0.41/24Nginx installation is 1.14 PHP installation is 7.1,yum installation process is not detailednginx的location里面的配置如下location ~ \.php$ { root /usr/share/nginx/html; fastcgi_pass 10.0.0.41:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /usr/
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.