export CMAKE_HOME=/usr/local/webserver/cmake
export PATH=$PATH:$CMAKE_HOME/bin
mkdir build
cd build
cmake ..
make
make install
./configure \
--prefix=/usr/local/webserver/nginx \
--user=nginx \
--group=nginx \
--with-http_ssl_module \
--with-http_flv_module \
--with-http_gzip_static_module \
--with-http_stub_status_module \
--add-module=/opt/nginx-http-concat-master
./configure \
--prefix=/usr/local/webserver/nginx \
--user=nginx \
--group=nginx \
--with-http_ssl_module \
--with-http_flv_module \
--with-http_gzip_static_module \
--with-http_stub_status_module \
--add-module=/opt/nginx-http-concat-master \
--add-module=/opt/openresty-1.11.2.4/bundle/ngx_devel_kit-0.3.0 \
--add-module=/opt/lua-nginx-module-0.10.10
./configure \
--with-bzlib=yes \
--with-autotrace=yes \
--with-djvu=yes \
--with-dps=yes \
--with-fftw=yes \
--with-flif=yes \
--with-fpx=yes \
--with-fontconfig=yes \
--with-freetype=yes \
--with-gslib=no
--with-gvc=yes \
--with-jbig=yes \
--with-jpeg=yes \
--with-lcms=yes \
--with-lqr=yes \
--with-ltdl=yes \
--with-lzma=yes \
--with-magick-plus-plus=yes \
--with-openexr=yes \
--with-openjp2=yes \
--with-pango=yes \
--with-perl=no
--with-png=yes \
--with-raqm=yes \
--with-raw=yes \
--with-rsvg=no
--with-tiff=yes \
--with-webp=yes \
--with-wmf=yes \
--with-x=
--with-xml=yes \
--with-zlib=yes
cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/webserver/mysql/ -DMYSQL_DATADIR=/data/mysql3306/data -DMYSQL_UNIX_ADDR=/tmp/mysql.sock -DDOWNLOAD_BOOST=1 -DWITH_BOOST=/usr/local/boost -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_MYISAM_STORAGE_ENGINE=1 -DENABLED_LOCAL_INFILE=1 -DMYSQL_TCP_PORT=3306 -DWITH_EXTRA_CHARSETS:string=all -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DWITH_DEBUG=0 -DWITH_READLINE=1 -DWITH_SSL=yes -DSYSCONFDIR=/data/mysql3306
/usr/local/lib # 添加该行
/usr/local/lib64 # 添加该行
./configure \
--prefix=/usr/local/webserver/php5.6 \
--with-config-file-path=/usr/local/webserver/php5.6/etc \
--enable-fpm \
--with-fpm-user=www \
--with-fpm-group=www \
--enable-soap \
--enable-gd-native-ttf \
--enable-ftp \
--enable-mbstring \
--enable-exif \
--enable-pdo \
--enable-mbstring \
--enable-opcache \
--enable-sockets \
--enable-pcntl \
--enable-zip \
--enable-calendar \
--enable-bcmath \
--enable-intl \
--with-pdo-mysql \
--with-mysql \
--with-mysqli \
--with-libxml-dir \
--with-pcre-dir \
--with-gd \
--with-vpx-dir \
--with-jpeg-dir \
--with-png-dir \
--with-freetype-dir \
--with-xpm-dir \
--with-iconv-dir \
--with-zlib-dir \
--with-mcrypt \
--with-zlib \
--with-curl \
--with-openssl \
--with-gettext \
--with-mhash \
--with-ldap \
--with-libdir=lib64 \
--without-pear \
--disable-phar
./configure \
--prefix=/usr/local/webserver/php7.1 \
--with-config-file-path=/usr/local/webserver/php7.1/etc \
--enable-fpm \
--with-fpm-user=www \
--with-fpm-group=www \
--enable-soap \
--enable-gd-native-ttf \
--enable-ftp \
--enable-mbstring \
--enable-exif \
--enable-pdo \
--enable-mbstring \
--enable-opcache \
--enable-sockets \
--enable-pcntl \
--enable-zip \
--enable-calendar \
--enable-bcmath \
--enable-intl \
--with-pdo-mysql \
--with-mysqli \
--with-libxml-dir \
--with-pcre-dir \
--with-gd \
--with-jpeg-dir \
--with-png-dir \
--with-freetype-dir \
--with-xpm-dir \
--with-iconv-dir \
--with-zlib-dir \
--with-mcrypt \
--with-zlib \
--with-curl \
--with-openssl \
--with-gettext \
--with-mhash \
--with-ldap \
--with-libdir=lib64 \
--without-pear \
--disable-phar
./configure \
--prefix=/usr/local/webserver/php7.3 \
--with-config-file-path=/usr/local/webserver/php7.3/etc \
--enable-fpm \
--with-fpm-user=www \
--with-fpm-group=www \
--enable-soap \
--enable-ftp \
--enable-mbstring \
--enable-exif \
--enable-pdo \
--enable-mbstring \
--enable-opcache \
--enable-sockets \
--enable-pcntl \
--enable-calendar \
--enable-bcmath \
--enable-intl \
--with-pdo-mysql \
--with-mysqli \
--with-libxml-dir \
--with-pcre-dir \
--with-gd \
--with-jpeg-dir \
--with-png-dir \
--with-freetype-dir \
--with-xpm-dir \
--with-iconv-dir \
--with-curl \
--with-openssl \
--with-gettext \
--with-mhash \
--with-ldap \
--with-libdir=lib64 \
--without-pear \
--disable-phar
./configure --with-php-config=/usr/local/webserver/php7.3/bin/php-config
make
make install
http://download.redis.io/releases/redis-3.0.1.tar.gz
./make & make test
vim /etc/sysctl.conf #sysctl vm.overcommit_memory=1
echo never > /sys/kernel/mm/transparent_hugepage/enabled
echo never > /sys/kernel/mm/transparent_hugepage/enabled >> /etc/rc.local
echo 512 > /proc/sys/net/core/somaxconn
http://jaist.dl.sourceforge.net/project/tcl/Tcl/8.6.4/tcl8.6.4-src.tar.gz
cd tcl8.6.4/unix/
./configure
./make & make install
## 部署应用
- mkdir -p /data/www/erp_standard/sitedata
- mkdir -p /data/www/erp_standard_www/sitedata
## 相关文件路径
- nginx
- 安装路径/usr/local/webserver/nginx
- 配置文件/usr/local/webserver/nginx/conf
- 启动/usr/local/webserver/nginx/sbin/nginx
- mysql
- 安装路径/opt/mysql/
- 配置文件/opt/mysql/my.cnf
- 启动/opt/mysql/support-files/mysql.server start
- 帐号密码:
- root/root@isnosafe
- op/t1234567(程序使用)
- php&php-fpm
- 安装路径/usr/local/webserver/php5.6/
- 配置文件/usr/local/webserver/php5.6/etc
- 启动 /usr/local/webserver/php5.6/php-fpm start
- 开机启动
- /usr/local/webserver/auto_start
## root防护
- useradd tripdc
- passwd tripdc
- vi /etc/ssh/sshd_config
- port/PermitRootLogin
- service sshd restart