新闻建站cms系统、政府cms系统定制开发

广州网站建设公司-阅速公司

asp.net新闻发布系统、报纸数字报系统方案
/
http://www.ysneo.com/
广州网站建设公司
您当前位置:首页>博客日记

博客日记

Linux系统(centos7.6)安装数字报刊系统常见错误

发布时间:2019/11/21 17:38:25  作者:Admin  阅读:2851  

广告:阿里云采购优惠专区

  1. 安装主页
  2. /
  3. CENTOS7安装数字报刊系统

1. CentOS 7安装autoconf-2.69 ./configure 报BEGIN failed--compilation aborted at ../bin/autom4te line 37.

错误解决:
安装yum groupinstall perl*
原因:
CLAIMS 第三方安装包编译问题
ECNU 90s集群是个环境复杂的集群,claims用户由于需要单独升级gcc 等系统工具版本,并且保留原有工具供OB team使用,故造成claims用户独特的高版本工具运行环境.

2. aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in' error: **** apxs was not found, DSO compilation will not be available.

错误解决:
需安装apxs (apxs是apache的一个辅助工具软件,它通常用来为apache安装扩展模块。)
yum search apxs 找到合适的包,再安装。或者直接安装httpd-devel也可。
yum install httpd-devel #apxs

3. rpm -ivh 安装某个rpm包时报错:
Warning: user mockbuild does not exist. using root

解决办法:
yum install mock
useradd -s /sbin/nologin mockbuild
cd /var/mod_mono-master
./autogen.sh --prefix=/usr/local/mono

4. [Wed Oct 30 17:41:47.942303 2019] [:error] [pid 45524] Failed running '/usr/bin/mod-mono-server2 --filename /tmp/mod_mono_server_global --nonstop --master (null) (null) (null) (null) (null) (null) (null) (null)'. Reason: No such file or directory [Wed Oct 30 17:41:49.943288 2019] [:error] [pid 45462] Failed to connect to mod-mono-server after several attempts to spawn the process.

解决办法:
需要安装 xsp
原因:
该模块传递asp.net的请求到一个额外的程序 mod-mono-server(该程序是在安装xsp的时候自动安装的),实际的求情处理是由该程序处理的。而Mod_Mono 和 mod-mono-server之间的通信是通过tcp的socket进行的。

5. configure: error: You need to install 'gmcs' configure: error: You need to install 'dmcs'

解决办法:
sudo yum install mono-mcs

6. configure: error: You need to install g++ g++
这是因为我们没有安装对应的gcc 和gcc-c++。
Linux上的gcc是Gnu的C语言编译器,至于C++编译器,它的名字叫做g++

解决办法:
yum install gcc gcc-c++

7. checking for cmake... no
configure: error: "cmake not found"

解决办法:
yum install -y cmake

8. Failed to connect to mod-mono-server after several attempts to spawn the process
configure: error: You need to install bison

解决办法:
yum install bison 

9. /usr/include/features.h:330:4: error: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Werror=cpp]
**Error**: You must have `libtool' installed to compile Mono.
Get ftp://ftp.gnu.org/pub/gnu/libtool-1.2d.tar.gz
(or a newer version if it is available)
解决办法:
yum install bison libtool

10. **Error**: automake failed.

解决办法:
sudo yum install automake autoconf libtool 

11. Version mismatch error. This is libtool 2.4.2, but the libtool: definition of this LT_INIT comes from libtool 2.2.6. autoreconf -ivf *106 connect() failed (111: Connection refused) while connecting to upstream 2019/11/06 12:44:29 [error] 953#953: *6 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 59.41.93.110, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "106.75.29.181"

原因:
fastcgi-mono-server2 /applications=/:/var/www/html /socket=tcp:127.0.0.1:9000 & 没有启动
解决办法:
查看服务器开启进程端口:netstat -lntp 看有没有 9000

12. upstream sent unexpected FastCGI record: 3 while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:8080", host: "127.0.0.1"
/usr/local/xsp/bin/fastcgi-mono-server4 /applications=/:/var/www/html /port=8080 /logfile=/var/log/nginx/xsp.log /socket=tcp:127.0.0.1:8080 &

解决办法:
在upstream服务器后端命令加上 /logfile参数,然后在xsp.log文件看详细错误

13. [error] 3099#3099: *1 directory index of "/var/www/html/" is forbidden, client: 127.0.0.1, server: localhost, request: "GET / HTTP/1.1", host: "localhost"

解决办法:
autoindex on;

14. Error Failed to process connection. Reason: Could not load file or assembly 'fastcgi-mono-server2, Version=2.10.2.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' or one of its dependencies. The system cannot find the file specified.
gac/fastcgi-mono-server2/2.10.2.0__0738eb9f132ed756/fastcgi-mono-server2.exe[2019-11-08 14:28:18] Error : Failed to process connection.
[2019-11-08 14:28:18] Error : Could not load file or assembly 'fastcgi-mono-server2, Version=3.8.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' or one of its dependencies. The system cannot find the file specified.
[2019-11-08 14:28:18] Error : at (wrapper xdomain-invoke) System.AppDomain:CreateInstanceAndUnwrap (string,string)
[2019-11-08 14:28:18] Error : at (wrapper remoting-invoke-with-check) System.AppDomain:CreateInstanceAndUnwrap (string,string)
[2019-11-08 14:28:18] Error : at System.Web.Hosting.ApplicationHost.CreateApplicationHost (System.Type hostType, System.String virtualDir, System.String physicalDir) [0x00000] in <filename unknown>:0
[2019-11-08 14:28:18] Error : at Mono.WebServer.VPathToHost.CreateHost (Mono.WebServer.ApplicationServer server, Mono.WebServer.WebSource webSource) [0x00000] in <filename unknown>:0
[2019-11-08 14:28:18] Error : at Mono.WebServer.ApplicationServer.GetApplicationForPath (System.String vhost, Int32 port, System.String path, Boolean defaultToRoot) [0x00000] in <filename unknown>:0
[2019-11-08 14:28:18] Error : at (wrapper remoting-invoke-with-check) Mono.WebServer.ApplicationServer:GetApplicationForPath (string,int,string,bool)
[2019-11-08 14:28:18] Error : at Mono.WebServer.FastCgi.Server.GetApplicationForPath (System.String vhost, Int32 port, System.String path, System.String realPath) [0x00000] in <filename unknown>:0
[2019-11-08 14:28:18] Error : at Mono.FastCgi.Request.ParseParameterData () [0x00000] in <filename unknown>:0
[2019-11-08 14:28:18] Error : at Mono.FastCgi.Request.AddParameterData (IReadOnlyList`1 data) [0x00000] in <filename unknown>:0
[2019-11-08 14:28:18] Error : at Mono.FastCgi.Connection.HandleParams (Mono.FastCgi.Request request, Record record) [0x00000] in <filename unknown>:0
[2019-11-08 14:28:18] Error : at Mono.FastCgi.Connection.HandleRequest (Record record, Mono.FastCgi.Request request) [0x00000] in <filename unknown>:0
[2019-11-08 14:28:18] Error : at Mono.FastCgi.Connection.Run () [0x00000] in <filename unknown>:0
[2019-11-08 14:28:18] Error : at Mono.WebServer.FastCgi.ConnectionProxy.Run () [0x00000] in <filename unknown>:0
[2019-11-08 14:28:18] Error : at Mono.WebServer.FastCgi.GenericServer`1[Mono.WebServer.FastCgi.ConnectionProxy].OnAccept (IAsyncResult ares) [0x00000] in <filename unknown>:0

解决办法:
XSP needs to be installed in the same prefix as mono, not in a different one XSP需要与 mono安装在同一目录

15. System.SystemException
Error running mcs: Cannot find the specified file
Description: HTTP 500.Error processing request.
Details: Non-web exception. Exception origin (name of application or object): System.

解决办法:
页面代码加page头: <%@ Page Language="C#"%>
mcs --version,先查看mcs是否安装
再检查映射
ln -s /usr/local/mono/bin/mcs /usr/bin

16. System.Web.Compilation.ParseException
Cannot find type Mvcb2b.MvcApplication
Description: Error parsing a resource required to service this request. Review your source file and modify it to fix this error.
Details: Cannot find type Mvcb2b.MvcApplication
Error origin: Parser
Error source file: /var/www/html/paperweb/Global.asax

解决办法:
web.config文件读取错误
请开启xsp调试:
/loglevels=Error /logfile=/var/log/nginx/xsp.log 这两个要同时设置才会显示详细出错信息
/usr/local/mono/bin/fastcgi-mono-server2 /socket=tcp:9000 /address=127.0.0.1 /applications=/:/var/www/html /port=9000 /loglevels=Error /logfile=/var/log/nginx/xsp.log &

17. An error occurred.
Sorry, the page you are looking for is currently unavailable.
Please try again later.
If you are the system administrator of this resource then you should check the error log for details.
Faithfully yours, nginx.

解决办法:
web.config文件读取错误
请开启xsp调试:
/loglevels=Error /logfile=/var/log/nginx/xsp.log 这两个要同时设置才会显示详细出错信息
/usr/local/mono/bin/fastcgi-mono-server2 /socket=tcp:9000 /address=127.0.0.1 /applications=/:/var/www/html /port=9000 /loglevels=Error /logfile=/var/log/nginx/xsp.log &
System.Configuration.ConfigurationErrorsException: Unable to open configSource file '/var/www/html/Config\53bknet.config'.
linux系统读取config文件,需要把 \ 转换为 /

18. Application Exception
System.Net.Sockets.SocketException
Connection refused
Description: HTTP 500.Error processing request.
Details: Non-web exception. Exception origin (name of application or object): System.Exception stack trace:
at System.Net.Sockets.Socket+SocketAsyncResult.CheckIfThrowDelayedException () [0x00000] in <filename unknown>:0
at System.Net.Sockets.Socket.EndConnect (IAsyncResult result) [0x00000] in <filename unknown>:0
at Mono.Data.Tds.Protocol.TdsComm..ctor (System.String dataSource, Int32 port, Int32 packetSize, Int32 timeout, TdsVersion tdsVersion) [0x00000] in <filename unknown>:0
Version Information: 3.8.0 (tarball Mon Nov 11 12:18:53 CST 2019); ASP.NET Version: 2.0.50727.1433

解决办法:
可能是数据库连接错误,请配置安装sqlserver数据库
或者注释stateserver连接: <!--<sessionState mode="StateServer" stateConnectionString="tcpip=127.0.0.1:42424" cookieless="false" timeout="30" />-->
或者环境变量设置:

vi /etc/profile # 最后一行加上以下内容: (最后插入行键盘输入大写的"G"  键盘输入小写的"o" 。保存,小写字母英文输入状态:esc后 按 : 号,输入 wq 保存文件并退出vi ,:w! 强制保存,不推出vi , :q 不保存文件,退出vi,:q! 不保存文件,强制退出vi)
export PATH=$PATH:/opt/mssql-tools/bin

 

19.
System.Net.Sockets.SocketException
Could not resolve host '(localhost)'
解决办法:
数据库连接不认识 localhost

20. System.Data.SqlClient.SqlException
无法打开登录所请求的数据库 "Newspaper"。登录失败。
Description: HTTP 500.Error processing request.
Details: Non-web exception. Exception origin (name of application or object): Mono SqlClient Data Provider.

解决办法:
数据库连接不认识 localhost,连接符错误

21. 浏览器显示中文乱码:

解决办法:
nginx 加 charset utf-8;
location ~* /{ #请求的url过滤,正则匹配,~为区分大小写,~*为不区分大小写。
#root /usr/share/nginx/html;
#index index.html index.htm;
root /var/www/html/;
index index.html index.htm;
charset utf-8;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
#fastcgi_index Default.aspx;
autoindex on;
#fastcgi_keep_conn on;
#fastcgi_read_timeout=150;
#fastcgi_send_timeout=150;
include fastcgi_params;
fastcgi_buffers 8 32k;
fastcgi_buffer_size 32k;
}

22.
System.DllNotFoundException
libgdiplus.so
Description: HTTP 500.Error processing request.
Details: Non-web exception. Exception origin (name of application or object): System.Drawing.
Exception stack trace:
at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
at System.Drawing.GDIPlus..cctor () [0x00000] in <filename unknown>:0

解决办法:
ln -s /usr/local/mono/lib /usr/lib
yum install libgdiplus-devel
ln -s /usr/lib64/libgdiplus.so.0.0.0 /usr/lib64/libgdiplus.so

23. System.Web.HttpException
The resource cannot be found. 图片 404 js文件404
Description: HTTP 404.The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly. nginx js文件 500 错误

解决办法:
setsebool -P samba_enable_home_dirs on (SElinux禁用)
js500错误,因为程序读取 appsetting错误。web.config config\53bknet.config 改成 ./config/53bknet.config
图片不显示,因为linux系统URL区分大小写
根目录下面新建一个 WebResource.axd 实际文件

24. System.Configuration.ConfigurationErrorsException
Unable to open configSource file '/var/www/html/Comja/Config\53bknet.config'.
Description: HTTP 500.Error processing request.
Details: Non-web exception. Exception origin (name of application or object): System.Configuration.
Exception stack trace: config\53bknet.config 改成 ./config/53bknet.config
WebResource.axd 404错误 Details: No virtual path information available.
临时目录:Error source file: /tmp/root-temp-aspnet-0/f55c6e0a/App_global.asax_876090_0.cs
<add path="WebResource.axd" verb="GET,DEBUG" type="System.Web.Handlers.AssemblyResourceLoader" />
解决办法:
要真的放个 WebResource.axd文件

25. System.Net.Sockets.SocketException
Connection refused
Description: HTTP 500.Error processing request.
Details: Non-web exception. Exception origin (name of application or object): System.Exception stack trace:
at System.Net.Sockets.Socket+SocketAsyncResult.CheckIfThrowDelayedException () [0x00000] in <filename unknown>:0
at System.Net.Sockets.Socket.EndConnect (IAsyncResult result) [0x00000] in <filename unknown>:0
at Mono.Data.Tds.Protocol.TdsComm..ctor (System.String dataSource, Int32 port, Int32 packetSize, Int32 timeout, TdsVersion tdsVersion) [0x00000] in <filename unknown>:0

解决方法:连接错误,一般数据库错误,请安装数据库

26. 413 Request Entity Too Large

解决方法:
上传文件过大 添加:client_max_body_size 100m;
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
#fastcgi_buffer_size 64K;
#gzip on;
client_max_body_size 100m;
include /etc/nginx/conf.d/*.conf;
}

27. System.Data.SqlClient.SqlException
无法打开备份设备 '/var/www/html/Img/database/2019111835.bak'。出现操作系统错误 2(系统找不到指定的文件)。

解决方法:
database目录添加--创建和删除权限

28. System.Data.SqlClient.SqlException
The incoming tabular data stream (TDS) remote procedure call (RPC) protocol stream is incorrect. Parameter 13: The parameter name is invalid.
Description: HTTP 500.Error processing request.
Details: Non-web exception. Exception origin (name of application or object): Mono SqlClient Data Provider.Exception stack trace:

解决方法:
new SqlParameter("@icp", SqlDbType.VarChar,80) 改成:new SqlParameter("@icp", SqlDbType.NVarChar,80)
SQL_Latin1_General_CP1_CI_AS的排序规则中,添加中文字符需要把参数字段类型 varchar 更改为nvarchar类型。

 

广告:阿里云新人采购专场

相关文章
linux
53bk
cms新闻系统购买咨询
扫描关注 广州阅速软件科技有限公司
扫描关注 广州阅速科技