当前位置: 首页 > news >正文

做cad室内平面图的家具素材网站关键词排名客服

做cad室内平面图的家具素材网站,关键词排名客服,免费网站java源码大全小说,如何做彩票网站推广图一、LNMP 1.1 搭建LNMP LNMP:LinuxNginxMysqlPHP LNMP优势: 1.web服务器一种,Nginx处理静态文件、索引文件,自动索引的效率非常高; 2.作为代理服务器,Nginx可以实现无缓存的反向代理加速,提高网站运行…

一、LNMP

1.1 搭建LNMP

LNMP:Linux+Nginx+Mysql+PHP

LNMP优势:

1.web服务器一种,Nginx处理静态文件、索引文件,自动索引的效率非常高;

2.作为代理服务器,Nginx可以实现无缓存的反向代理加速,提高网站运行速度;

3.作为负载均衡服务器、Nginx可以在内部直接支持Redis和PHP,可以支持HTTP代理服务器对外进行服务,同时还支持简单的容错和利用算法进行负载;

4.性能方面,Nginx是专门为性能优化开发的,采用Poll模型,最大支持5万并发连接,而且占用很少一部分内存资源;使CPU占用资源非常的低,DDOS攻击对 Nginx来说基本上无效;高可用性,Nginx支持热部署,启动速度特别迅速,对软件版本或者配置升级,即使运行数月也无需启动,几乎可以做到7*24小时不间断运行。

安装基本环境准备

yum -y install gcc gcc-c++ wget expat-devel

##安装Nginx


添加nginx为系统用户
# groupadd -r nginx
# useradd -r -g nginx  -d /usr/local/nginx -M nginx
# cd /usr/local/software
# tar -zxvf headers-more-nginx-module-0.32.tar.gz
# tar -zxvf nginx-1.20.1.tar.gz
# cd nginx-1.20.1
# ./configure --prefix=/usr/local/nginx --user=nginx --group=nginx --with-http_stub_status_module --with-http_ssl_module --with-http_gzip_static_module --add-module=/usr/local/software/headers-more-nginx-module-0.32
# make && make install && echo "say ok"
启动nginx
# /usr/local/nginx/sbin/nginx

##安装Mysql

由于是源码安装,所以需要我们创建用户
# groupadd -r mysql
# useradd -r -g mysql -s /bin/false mysql                #注释:-r 创建系统账户(id低于499)。
# cd /usr/local/software
# tar -zxvf boost_1_59_0.tar.gz -C /usr/local
# tar -zxvf mysql-5.7.23.tar.gz
# cd mysql-5.7.23
# cmake \
-DCMAKE_INSTALL_PREFIX=/usr/local/mysql \
-DMYSQL_DATADIR=/db/mysql/data \
-DWITH_BOOST=/usr/local/boost_1_59_0/ \
-DSYSCONFDIR=/etc \
-DEFAULT_CHARSET=utf8mb4 \
-DDEFAULT_COLLATION=utf8mb4_general_ci \
-DENABLED_LOCAL_INFILE=1 \
-DEXTRA_CHARSETS=all
# make && make install
如果编译报错,需要先删除CMakeCache.txt文件。

##配置mysql

1)创建存放数据库目录
# mkdir -p /db/mysql/data 
# chown -R mysql:mysql /usr/local/mysql/
# chown -R mysql:mysql /db/mysql/
2)创建my.cnf配置文件
# touch /db/mysql/mysqld.log
# chown mysql:mysql /db/mysql/mysqld.log
# vim /etc/my.cnf
################ start #################
[client]
port = 3306
socket = /tmp/mysql.sock
[mysqld]
port = 3306
socket  = /tmp/mysql.sock
basedir = /usr/local/mysql
datadir = /db/mysql/data
tmpdir  = /tmp
character-set-server = utf8
collation-server = utf8_general_ci
[mysqld_safe]
log-error=/db/mysql/mysqld.log
################ stop #################
3)初始化mysql
# /usr/local/mysql/bin/mysqld --initialize-insecure --user=mysql --basedir=/usr/local/mysql --datadir=/db/mysql/data
4)编辑启动脚本
# cp /usr/local/mysql/support-files/mysql.server /etc/init.d/mysqld
# vim /etc/init.d/mysqld
################ start #################
basedir=/db/mysql/data
datadir=/user/local/mysql
################ stop #################
# chmod +x /etc/init.d/mysqld 
5)设置开机自启动
# chkconfig --add mysqld
# chkconfig mysqld on
# /etc/init.d/mysqld start
6)访问mysql
# ln -s /usr/local/mysql/bin/* /usr/bin/
# mysql -uroot -p    #默认密码为空

##配置my.cnf
##mv /etc/my.cnf /etc/my.cnf.bak

cat >/etc/my.cnf<<EOF
[client]
port=3306
socket=/data/mysql/mysql.sock

[mysqld]
character-set-server=utf8
collation-server=utf8_general_ci

skip-name-resolve
user=mysql
port=3306
basedir=/usr/local/mysql57
datadir=/data/mysql
tmpdir=/tmp
socket=/data/mysql/mysql.sock

log-error=/data/mysql/mysqld.log
pid-file=/data/mysql/mysqld.pid 

EOF

##安装PHP

#安装前确保系统没有安装其他版本的php

rpm -qa | grep php

#下载源码安装包

tar jxf php-7.4.6.tar.bz2
cd php-7.4.6
 
./configure --prefix=/usr/local/lnmp/php --with-config-file-path=/usr/local/lnmp/php/etc --enable-fpm --with-fpm-user=nginx --with-fpm-group=nginx  --with-curl --with-iconv --with-mhash --with-zlib --with-openssl --enable-mysqlnd --with-mysqli --with-pdo-mysql --disable-debug --enable-sockets --enable-soap --enable-inline-optimization --enable-xml --enable-ftp --enable-gd --enable-exif --enable-mbstring  --enable-bcmath --with-fpm-systemd
 
make  && make install

##根据安装提示进行依赖包安装,解决依赖性
# yum install -y systemd-devel.x86_64
# yum install -y libxml2-devel.x86_64
# yum install -y sqlite-devel.x86_64
# yum install -y libcurl-devel.x86_64
# yum install -y libpng-devel.x86_64
 
# yum install -y  oniguruma-6.8.2-1.el7.x86_64.rpm oniguruma-devel-6.8.2-1.el7.x86_64.rpm

#根据提示安装以来后,再次进行make && make install

路径优化,方便命令识别

ln -s /usr/local/php/bin/* /usr/local/bin/

ln -s /usr/local/php/sbin/* /usr/local/sbin/

修改php文件配置

php有三个配置文件:

php.ini 主配置文件  

php-fpm.conf 进程服务配置文件

www.conf 扩展配置文件

#使用命令进行文件修改:

cp php.ini-development /usr/local/php/lib/php.ini
vi /usr/local/php/lib/php.ini
 
/1170 mysqli.default_socket = /usr/local/mysql/mysql.sock
date.timezone = Asia/Shanghai

 /usr/local/php/bin/php -m //验证安装的模块

#复制主配置文件及php-fpm 配置文件

cd /usr/local/php/etc/

cp php-fpm.conf.default php-fpm.conf

cd /usr/local/php/etc/php-fpm.d/

cp www.conf.default www.conf

cd /usr/local/php/etc/
vi php-fpm.conf
#开启pid 支持(可运行)
pid = run/php-fpm.pid

#启动php -c 代表 conf
/usr/local/php/sbin/php-fpm -c /usr/local/php/lib/php.ini
netstat -anpt | grep 9000
#识别命令
ln -s /usr/local/php/bin/* /usr/local/bin/
#
ps aux | grep -c "php-fpm"  //查看php的进程

#让nginx支持PHP功能
vi /usr/local/nginx/conf/nginx.conf  //在合适的位置
 
location ~ \.php$ {
            root           html;
            fastcgi_pass   127.0.0.1:9000;
            fastcgi_index  index.php;
            fastcgi_param  SCRIPT_FILENAME  /usr/local/nginx/html$fastcgi_script_name; ####注意目录名称
            include        fastcgi_params;
}
 
 
vi /usr/local/nginx/html/index.php
<?php
phpinfo();
?>
 
systemctl restart nginx

#部署 Discuz!社区论坛 Web 应用
cd /opt
unzip Discuz_X3.4_SC_UTF8.zip  -d /tmp
cd /tmp/dir_SC_UTF8/
cp -r upload/ /usr/local/nginx/html/bbs/
cd /usr/local/nginx/html/bbs/
chown -R root:nginx ./config/
chown -R root:nginx ./data/
chown -R root:nginx ./uc_client/
chown -R root:nginx ./uc_server/
#调整目录权限,最后进行登录验证 
chmod -R 777 ./config/
chmod -R 777 ./data/
chmod -R 777 ./uc_client/
chmod -R 777 ./uc_server/

http://IP地址/bbs/install/index.php


文章转载自:
http://calefy.zzyjnl.cn
http://catecholamine.zzyjnl.cn
http://afore.zzyjnl.cn
http://aphony.zzyjnl.cn
http://amphiphyte.zzyjnl.cn
http://blitzkrieg.zzyjnl.cn
http://captation.zzyjnl.cn
http://basta.zzyjnl.cn
http://apiology.zzyjnl.cn
http://cholla.zzyjnl.cn
http://catchpole.zzyjnl.cn
http://carom.zzyjnl.cn
http://balefire.zzyjnl.cn
http://agnatic.zzyjnl.cn
http://centralise.zzyjnl.cn
http://beth.zzyjnl.cn
http://assr.zzyjnl.cn
http://aerenchyma.zzyjnl.cn
http://billposting.zzyjnl.cn
http://and.zzyjnl.cn
http://carack.zzyjnl.cn
http://betony.zzyjnl.cn
http://bottomland.zzyjnl.cn
http://banjax.zzyjnl.cn
http://capoid.zzyjnl.cn
http://abelmosk.zzyjnl.cn
http://beggarliness.zzyjnl.cn
http://ceric.zzyjnl.cn
http://berserkly.zzyjnl.cn
http://cede.zzyjnl.cn
http://caradoc.zzyjnl.cn
http://acetabulum.zzyjnl.cn
http://checkmate.zzyjnl.cn
http://abettal.zzyjnl.cn
http://burmese.zzyjnl.cn
http://change.zzyjnl.cn
http://alabamian.zzyjnl.cn
http://calando.zzyjnl.cn
http://bituminize.zzyjnl.cn
http://breechblock.zzyjnl.cn
http://abuzz.zzyjnl.cn
http://abri.zzyjnl.cn
http://adjoin.zzyjnl.cn
http://applescript.zzyjnl.cn
http://bidden.zzyjnl.cn
http://biface.zzyjnl.cn
http://almoner.zzyjnl.cn
http://andesite.zzyjnl.cn
http://bailer.zzyjnl.cn
http://avalon.zzyjnl.cn
http://bookmaker.zzyjnl.cn
http://aurification.zzyjnl.cn
http://accidentproof.zzyjnl.cn
http://buffo.zzyjnl.cn
http://apivorous.zzyjnl.cn
http://chlorambucil.zzyjnl.cn
http://calefactive.zzyjnl.cn
http://bestrewn.zzyjnl.cn
http://autosum.zzyjnl.cn
http://acrobatics.zzyjnl.cn
http://balaam.zzyjnl.cn
http://bullshit.zzyjnl.cn
http://byronic.zzyjnl.cn
http://acronymic.zzyjnl.cn
http://branchy.zzyjnl.cn
http://cavitron.zzyjnl.cn
http://accost.zzyjnl.cn
http://airing.zzyjnl.cn
http://bedpost.zzyjnl.cn
http://cerement.zzyjnl.cn
http://cheroot.zzyjnl.cn
http://abandoned.zzyjnl.cn
http://bayberry.zzyjnl.cn
http://appropriation.zzyjnl.cn
http://acrostic.zzyjnl.cn
http://cheliform.zzyjnl.cn
http://ataraxia.zzyjnl.cn
http://authentically.zzyjnl.cn
http://auditorial.zzyjnl.cn
http://breen.zzyjnl.cn
http://bronchoconstriction.zzyjnl.cn
http://chamber.zzyjnl.cn
http://bombax.zzyjnl.cn
http://acyclic.zzyjnl.cn
http://chequebook.zzyjnl.cn
http://armband.zzyjnl.cn
http://alyssum.zzyjnl.cn
http://apiarian.zzyjnl.cn
http://breve.zzyjnl.cn
http://buckboard.zzyjnl.cn
http://bat.zzyjnl.cn
http://baccalaureate.zzyjnl.cn
http://azotemia.zzyjnl.cn
http://caecectomy.zzyjnl.cn
http://astrocytoma.zzyjnl.cn
http://babiche.zzyjnl.cn
http://carburization.zzyjnl.cn
http://bestead.zzyjnl.cn
http://bustling.zzyjnl.cn
http://asshur.zzyjnl.cn
http://www.tj-hxxt.cn/news/25363.html

相关文章:

  • wordpress复制page线上seo关键词优化软件工具
  • 公司网站建设成本沈阳网站关键词优化多少钱
  • 做网站的用多少钱友链交易平台
  • 张家港网站建设做网站百度关键词优化点击 教程
  • 如何给网站挂黑链青岛网络seo公司
  • 唐山网站建设.comdw网页设计模板网站
  • 网站加载速度慢的原因模板建站优点
  • 静态网站建设适合推广的app有哪些
  • 做网站哪个语言好十大免费excel网站
  • 北京中燕建设公司网站原画培训班一般学费多少
  • 敦化网站建设网站一年了百度不收录
  • 什么网站做奢侈品的工厂店网站批量收录
  • 陕煤化建设集团网站矿建二公司最近一周的新闻
  • wordpress 无法注册微博seo营销
  • 苹果cms网站地图怎么做seo网络营销案例分析
  • 永城住房和城乡建设委员会网站seo课程培训要多少钱
  • 国内网站是cn还是com营销活动方案模板
  • 网站 开发 备案代理网站关键词优化案例
  • dede织梦织梦更换模板网站html网页制作模板
  • 114黄页信息网谷歌aso优化
  • 什么是网络营销本质是什么seo优化分析
  • 集团定制网站建设公司百合seo培训
  • 潍坊网站建设seo企业网站模板
  • 安徽省做网站域名注册平台
  • 专门做奢侈品的网站北京最新疫情
  • 申请免费网站建设合肥百度快照优化排名
  • 邯郸百度公司地址免费seo营销软件
  • 常州建设局官方网站最有效的宣传方式
  • 中华人民共住房和城乡建设部网站深圳今日头条新闻
  • 如何分析一个网站做的怎么样优化培训课程