首页 > 系统服务 > 详细

Linux 踩坑过程

时间:2017-08-29 10:39:47      阅读:249      评论:0      收藏:0      [点我收藏+]

1、装虚拟机(Windows自带的Hyper-V 坑爹,用VMware虚拟机安装ubuntuOK ,前提是要把Hyper-v 干掉)

2、filezilla 连接 ubuntu 连接不上(耗时最长)

2.1、切换到root 用户登录(sudo passwd root

            input your password for current user:

            enter new unix password

            retype new unix password

            su root )

2.2、ssh服务未安装(sudo apt-get install openssh-server)安装这个服务
2.3、修改 /etc/ssh/sshd_config文件 PermitRootLogin prohibit-password 的值为yes PermitRootLogin yes

2.4、打开相应的端口

3、filezilla 连接成功 

上传crm发布的代码到Ubuntu /***/***/***/*** 下

5、/usr/jexus/siteconf (复制default文件 rename crm 修改 port=443 、 root=/ /***/***/***/*** 、 UseHttps=false ) ./jws restart (在jexus路径下运行该命令)

6、访问192.168.23.103:443/Login.aspx 页面显示正常

7、输入用户名密码 登录 报错 Could not find file "/root/***/***/***/web.config".

8、将改路径下的Web.config 改成 web.config OK(大小写)

以上为Unbuntu 步骤


Centos 大致类似

只不过Centos 是用yum -y install 命令来安装各种东东

开启端口 iptables -A INPUT -p tcp --dport 80 -j ACCEPT
/etc/ssh/sshd_config 取消注释 # Authentication: 下
LoginGraceTime 2m
PermitRootLogin yes
StrictModes yes

 

Linux 踩坑过程

原文:http://www.cnblogs.com/Lance-FangQI/p/7446990.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!