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

长沙市网站制作哪家好如何 建公司网站

长沙市网站制作哪家好,如何 建公司网站,wordpress导航404,汕头网站推广制作怎么做mono是.NET在Linux下的的开源实现#xff0c; 主要的运行方式分为两种apache mod_mononginx fastcgi (mono)考虑到nginx性能更好#xff0c;这里讲述第二种实现方法因为Ubuntu 提供了完整的mono软件包支持#xff0c;因此本文尝试在Ubuntu 12.04下搭建安装mono和fastcgi-s… mono是.NET在Linux下的的开源实现 主要的运行方式分为两种apache mod_mononginx fastcgi (mono)考虑到nginx性能更好这里讲述第二种实现方法因为Ubuntu 提供了完整的mono软件包支持因此本文尝试在Ubuntu 12.04下搭建安装mono和fastcgi-serverapt-get install mono-runtime mono-fastcgi-server4 mono-fastcgi-server2 与jdk类似查看mono版本rootubuntu:~# mono --version Mono JIT compiler version 2.10.8.1 (Debian 2.10.8.1-1ubuntu2.2) Copyright (C) 2002-2011 Novell, Inc, Xamarin, Inc and Contributors. www.mono-project.com    TLS:           __thread    SIGSEGV:       altstack    Notifications: epoll    Architecture:  amd64    Disabled:      none    Misc:          softdebug      LLVM:          supported, not enabled.    GC:            Included Boehm (with typed GC and Parallel Mark) 安装nginxapt-get install nginx 让mono以fastcgi方式在后台跑起来监听本地9000端口rootubuntu:~# fastcgi-mono-server2 /applicationswww.abc.com:/:/usr/share/nginx/www /sockettcp:127.0.0.1:9000  [1] 4428  rootubuntu:~# fastcgi-mono-server4 /applicationswww.abc.com:/:/usr/share/nginx/www /sockettcp:127.0.0.1:9001  [1] 4447  可以根据需要写一个开机运行脚本譬如在rc.local 加入上面两行命令让其开机启动。示例如下#!/usr/bin/env bash ### BEGIN INIT INFO # Provides:          monoserve.sh # Required-Start:    $local_fs $syslog $remote_fs # Required-Stop:     $local_fs $syslog $remote_fs # Default-Start:     2 3 4 5 # Default-Stop:      0 1 6 # Short-Description: Start fastcgi mono server with hosts ### END INIT INFO PATH/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DAEMON/usr/bin/mono NAMEmonoserverDESCmonoserverMONOSERVER$(which fastcgi-mono-server4) MONOSERVER_PID$(ps auxf | grep fastcgi-mono-server4.exe | grep -v grep | awk {print $2}) WEBAPPSwww.abc.com:/:/var/www/case $1 in        start)                if [ -z ${MONOSERVER_PID} ]; then                        echo starting mono server                        ${MONOSERVER} /applications${WEBAPPS} /sockettcp:127.0.0.1:9000                        echo mono server started                else                        echo ${WEBAPPS}                        echo mono server is running                fi        ;;        stop)                if [ -n ${MONOSERVER_PID} ]; then                        kill ${MONOSERVER_PID}                        echo mono server stopped                else                        echo mono server is not running                fi        ;; esac exit 0 查看mono进程和本地端口rootubuntu:~# ps -elf |grep mono 0 S root      4428  1531  0  80   0 - 76813 futex_ 18:59 pts/0    00:00:00 /usr/bin/mono /usr/lib/mono/2.0/fastcgi-mono-server2.exe /applicationswww.abc.com:/:/usr/share/nginx/www /sockettcp:127.0.0.1:9000 0 S root      4447  1531  0  80   0 - 76993 futex_ 19:19 pts/0    00:00:00 /usr/bin/mono /usr/lib/mono/4.0/fastcgi-mono-server4.exe /applicationswww.abc.com:/:/usr/share/nginx/www /sockettcp:127.0.0.1:9001 0 S root      4454  1531  0  80   0 -  2346 pipe_w 19:19 pts/0    00:00:00 grep --colorauto mono rootubuntu:~# ss -ln State      Recv-Q Send-Q                                                    Local Address:Port                                                      Peer Address:Port  LISTEN     0      128                                                           127.0.0.1:9001                                                                 *:*      LISTEN     0      128                                                                  :::22                                                                  :::*      LISTEN     0      128                                                                   *:22                                                                   *:*      LISTEN     0      128                                                           127.0.0.1:9000                                                                 *:*      rootubuntu:~#  配置nginx, 注意区分大小写server {        listen   80 ;        server_name  www.abc.com ;        access_log   /var/log/nginx/www.abc.com.access.log ;        location ~*  / {                root /var/www/ ;                index index.html index.htm default.aspx Default.aspx ;                fastcgi_pass 127.0.0.1:9000;                include fastcgi_params;        } } 在文件/etc/nginx/fastcgi_params中加入两行fastcgi_param  PATH_INFO          ; fastcgi_param  SCRIPT_FILENAME    $document_root$fastcgi_script_name; 开启nginxservice nginx start 找一个asp 的示例helloworld.aspx% HelloWorldLabel.Text Hello, world!; %!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtdhtmlxmlnshttp://www.w3.org/1999/xhtmlheadrunatservertitleUntitled Page/title/headbodyformidform1runatserverdivasp:LabelrunatserveridHelloWorldLabel/asp:Label/div/form/body/html本文只是尝试mono在linux下的具体实现方法点到为止由于不是生产环境性能和稳定性没有深入测试。 转载于:https://blog.51cto.com/purplegrape/1122883
http://www.zqtcl.cn/news/808866/

相关文章:

  • 萍乡做网站的公司做偏门网站
  • 成都网站开发价格企业网站管理系统破解版
  • 郑州新闻头条最新消息百度小程序关键词优化
  • 甘肃省通信管理局网站北京软件开发公司排名前十强
  • 用现成的网站模板只套内容就可以有这样的吗忻府网站建设排名
  • 网站设计结果泸州市住房和城乡建设厅官方网站
  • php网站开发入门到精通教程旅游网站项目评估
  • 四川省城乡和住房建设厅网站首页通过邮箱查注册网站
  • 自己的网站怎么编辑如何做响应式的网站
  • 做一个产品网站要多少钱网站宣传与推广的方法
  • 郑州区块链数字钱包网站开发公司局部装修改造找哪家装修公司
  • 网站界面可以做版权吗学生网站建设的总结与评价
  • 用表格做网站10条重大新闻
  • 河南定制网站建设报价盐城网站建设制作工作室
  • 能看各种网站的浏览器wordpress文章名称背景
  • ppt做视频模板下载网站网站建设在哪些方面
  • 能用pinduoduo做网站吗网站建设行业的分析
  • 新乡商城网站建设价格做网站网站会怎么样
  • 给个网站能用的2022作品集模板
  • 做推送好用的网站科技资讯网站有哪些
  • 手机上如何制作网站wordpress阅读量随机生成
  • 汝州市住房和城乡建设局网站网站自己做流量
  • 怎么做网站有利于收录沭阳做网站公司排名前十
  • 给企业做网站如何定价电商系统平台
  • 山东川畅科技网站设计流量网站建设教程
  • 湖南省住房建设厅网站企业手机网站制作
  • 做虚假网站犯法吗发稿计划
  • 网站怎么防黑客网站建设一般要多大空间
  • 做网站一般要多钱织梦做网站被告
  • 响应式网站如何设计网页设计与制作课程标准化项目申报书