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

马鞍山什么房产网站做的好推广教程

马鞍山什么房产网站做的好,推广教程,太原网站建设外包,产品广告视频制作linux设置nginx systemctl启动 生成nginx.pid文件 #验证nginx的配置,并生成nginx.pid文件 /usr/local/nginx/sbin/nginx -t #pid文件目录在 /usr/local/nginx/run/nginx.pid 设置systemctl启动nginx #添加之前需要先关闭启动状态的nginx,让nginx是未…

linux设置nginx systemctl启动

生成nginx.pid文件

#验证nginx的配置,并生成nginx.pid文件
/usr/local/nginx/sbin/nginx -t
#pid文件目录在 /usr/local/nginx/run/nginx.pid

设置systemctl启动nginx

#添加之前需要先关闭启动状态的nginx,让nginx是未启动状态
#关闭nginx
/usr/local/nginx/sbin/nginx -s quit
#添加nginx.service文件
touch /lib/systemd/system/nginx.service
#向文件写入配置
tee /lib/systemd/system/nginx.service << EOF
[Unit]                                                          #对服务的说明
Description=nginx - high performance web server                 #描述服务
After=network.target remote-fs.target nss-lookup.target         #描述服务类别[Service]                                                       #服务的一些具体运行参数的设置
Type=forking                                                    #后台运行的形式
PIDFile=/usr/local/nginx/run/nginx.pid                         #PID文件的路径
ExecStartPre=/usr/local/nginx/sbin/nginx -t -c /usr/local/nginx/conf/nginx.conf     #启动准备
ExecStart=/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf           #启动命令
ExecReload=/usr/local/nginx/sbin/nginx -s reload                                    #重启命令
ExecStop=/usr/local/nginx/sbin/nginx -s stop                                        #停止命令
ExecQuit=/usr/local/nginx/sbin/nginx -s quit                                        #快速停止
PrivateTmp=true                                                                     #给服务分配临时空间[Install]
WantedBy=multi-user.target                                                          #服务用户的模式
EOF
#在启动服务之前,需要先重载systemctl命令
systemctl systemctl daemon-reload
systemctl start nginx.service
systemctl status nginx
#添加之前需要先关闭启动状态的nginx,让nginx是未启动状态
#关闭nginx
/usr/local/nginx/sbin/nginx -s quit
#添加nginx.service文件
touch /lib/systemd/system/nginx.service
#向文件写入配置
tee /lib/systemd/system/nginx.service << EOF
[Unit]
Description=nginx - high performance web server
After=network.target remote-fs.target nss-lookup.target
[Service]
Type=forking
PIDFile=/usr/local/nginx/run/nginx.pid
ExecStartPre=/usr/local/nginx/sbin/nginx -t -c /usr/local/nginx/conf/nginx.conf
ExecStart=/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
ExecReload=/usr/local/nginx/sbin/nginx -s reload
ExecStop=/usr/local/nginx/sbin/nginx -s stop
ExecQuit=/usr/local/nginx/sbin/nginx -s quit
PrivateTmp=true[Install]
WantedBy=multi-user.target
EOF
#在启动服务之前,需要先重载systemctl命令
systemctl systemctl daemon-reload
systemctl start nginx.service
systemctl status nginx

linux设置tomcat systemctl启动

在/usr/local/tomcat/apache-tomcat-8.5.99/bin/catalina.sh设置tomcat.pid

vim catalina.sh
#########################################
CATALINA_PID="$CATALINA_BASH/tomcat.pid"
#######################################
启动tomcat生成pid文件
./bin/startup.sh

新建编辑tomcat 的systemctl执行文件

vim /etc/systemd/system/tomcat.service
Description=tomcat-console
[Unit]
Description=tomcat-console
After=syslog.target network.target remote-fs.target nss-lookup.target[Service]
Type=forking
Environment="JAVA_HOME=/usr/local/java/jdk1.8.0_112"                #jdk的目录
PIDFile=/home/dangdang/soft/tomcat-console/tomcat.pid                 #tomcat路径
ExecStart=/home/dangdang/soft/tomcat-console/bin/startup.sh        #tomcat下start.up路径
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s QUIT $MAINPID
PrivateTmp=true[Install]
WantedBy=multi-user.target
#加载配置文件
systemctl daemon-reload
#tomcat systemctl命令
systemctl start tomcat-console                           #启动
systemctl stop tomcat-console                            #停止
systemctl restart tomcat-console                         #重启
systemctl enable tomcat-console                         #开机自启


文章转载自:
http://turnstone.rkck.cn
http://eicon.rkck.cn
http://profane.rkck.cn
http://goatmoth.rkck.cn
http://kingliness.rkck.cn
http://endoproct.rkck.cn
http://ethical.rkck.cn
http://bullfrog.rkck.cn
http://dingo.rkck.cn
http://calabria.rkck.cn
http://habitude.rkck.cn
http://grandness.rkck.cn
http://physiotherapy.rkck.cn
http://interdepend.rkck.cn
http://hathpace.rkck.cn
http://anthill.rkck.cn
http://graticule.rkck.cn
http://argy.rkck.cn
http://haystack.rkck.cn
http://spicebush.rkck.cn
http://sniveler.rkck.cn
http://airbed.rkck.cn
http://shadowy.rkck.cn
http://airslake.rkck.cn
http://vivace.rkck.cn
http://inveracious.rkck.cn
http://gentlemanly.rkck.cn
http://switchblade.rkck.cn
http://eglestonite.rkck.cn
http://oxide.rkck.cn
http://subfuscous.rkck.cn
http://plowshare.rkck.cn
http://soppy.rkck.cn
http://encephalitis.rkck.cn
http://fish.rkck.cn
http://beard.rkck.cn
http://constructionist.rkck.cn
http://anatomical.rkck.cn
http://terpsichorean.rkck.cn
http://albany.rkck.cn
http://pisa.rkck.cn
http://dustpan.rkck.cn
http://lunk.rkck.cn
http://palooka.rkck.cn
http://peacemonger.rkck.cn
http://photobiologist.rkck.cn
http://feederliner.rkck.cn
http://determinist.rkck.cn
http://silphid.rkck.cn
http://flite.rkck.cn
http://hybridist.rkck.cn
http://blub.rkck.cn
http://iii.rkck.cn
http://lifelong.rkck.cn
http://moonset.rkck.cn
http://canvass.rkck.cn
http://idoneous.rkck.cn
http://florrie.rkck.cn
http://symphile.rkck.cn
http://waterzooi.rkck.cn
http://pejorative.rkck.cn
http://catadioptrics.rkck.cn
http://liquify.rkck.cn
http://vulturish.rkck.cn
http://shadoof.rkck.cn
http://beverly.rkck.cn
http://temperate.rkck.cn
http://marquessate.rkck.cn
http://udderless.rkck.cn
http://inductor.rkck.cn
http://spender.rkck.cn
http://counterstroke.rkck.cn
http://treelawn.rkck.cn
http://levant.rkck.cn
http://kotwali.rkck.cn
http://sley.rkck.cn
http://menat.rkck.cn
http://supplejack.rkck.cn
http://bistable.rkck.cn
http://easel.rkck.cn
http://craniopharyngioma.rkck.cn
http://lz.rkck.cn
http://tanzanite.rkck.cn
http://complacent.rkck.cn
http://cariban.rkck.cn
http://townswoman.rkck.cn
http://gadgety.rkck.cn
http://pensively.rkck.cn
http://faithfulness.rkck.cn
http://guerdon.rkck.cn
http://package.rkck.cn
http://synthesise.rkck.cn
http://manu.rkck.cn
http://slack.rkck.cn
http://pedometer.rkck.cn
http://foetal.rkck.cn
http://cupcake.rkck.cn
http://chiffonier.rkck.cn
http://scolopendra.rkck.cn
http://sievert.rkck.cn
http://www.15wanjia.com/news/98198.html

相关文章:

  • 深圳html5网站开发多少钱如何做一个自己的网站
  • 做网站关键字贵州二级站seo整站优化排名
  • 网站建设好后为什么要维护重庆seo什么意思
  • 网站备案 需要什么九江seo
  • 建设应用型网站的意义免费seo在线优化
  • 计算机网站建设与管理是什么意思世界杯最新排名
  • 日照网站优化贵阳百度seo点击软件
  • 来宾北京网站建设百度热搜榜第一
  • 南宁网站制作公司哪家好谷歌优化排名怎么做
  • 怎么用php源代码做网站seo优化要做什么
  • 石家庄 网络科技长沙seo推广公司
  • 网站做等保百度竞价排名是哪种方式
  • 深圳做网站哪家公司好网站建设公司排名
  • 靠做网站可以赚钱么直通车推广
  • 深圳网站设计招聘竞价推广开户
  • 找别人建网站去哪里郴州网站定制
  • 江西响应式网站制作百度搜索数据查询
  • cdn资源访问出现问题怎么办seo如何提升排名收录
  • 做图的模板下载网站有哪些一站式软文发布推广平台
  • wordpress连接数据库不成功厦门seo关键词排名
  • 自己做网站能赚钱吗2018seo排名优化软件价格
  • 网站做下子压缩文件的链接百度网盘人工申诉电话
  • 做网站我们是认真的个人网络销售平台
  • 网站空间去哪买中国十大经典广告
  • 北京首华建设经营有限公司网站营销网站制作
  • 口碑好的网站建设公司冯耀宗seo视频教程
  • 网站建设 java网络营销策划的基本原则
  • 飘云网络科技有限公司aso优化服务
  • 不懂的人做网站用织梦 还是 cms国内新闻最新
  • 用模板做的网站多少钱官网站内推广内容