随笔分类 -  Linux

Linux中tomcat随服务器自启动的设置方法
摘要:1. cd到rc.local文件所在目录,一般在 /etc/rc.d/目录。 2. 将rc.local下载到本地windows系统中。 3. 编辑rc.local,将要启动的tomcat /bin/目录下的startup.sh文件的路径添加进入rc.d 中 touch xxxxx 行的下面即可,如下 阅读全文

posted @ 2018-12-06 18:11 zhcgis 阅读(418) 评论(0) 推荐(0)

Linux虚拟机与主机网络连接配置与文件传输
摘要:网络配置 对于VMware虚拟机 1. 设置linux系统的网络配置,如下(NAT为默认配置,这里采用这一配置) 2. 主机中配置本地连接-属性-共享-勾选红框配置项,如下: 3.重启虚拟机。 4.虚拟机中终端输入:ifconfig 查看虚拟机ip地址,如下: 5. 主机中cmd调出命令行工具,输入 阅读全文

posted @ 2018-12-04 18:47 zhcgis 阅读(986) 评论(0) 推荐(0)

Linux + NodeJS 常用命令
摘要:Linux系统常用命令 1.su 由当前用户切换至root用户; 2. su username 切换至某一用户; 3.chmod u+w /etc/sudoers 为/etc/sudoers文件添加写权限 4.chmod u-w /etc/sudoers 去除/etc/sudoers文件的写权限 5 阅读全文

posted @ 2018-12-04 14:18 zhcgis 阅读(1663) 评论(0) 推荐(0)

Linux执行source /etc/profile报错“:command not found”
摘要:修改完 /etc/profile中的内容后,执行“立即生效”命令 “source /etc/profile”报错: :command not found :command not found :command not found 解决方法: 执行如下命令(两种方式): 参考:https://blog 阅读全文

posted @ 2018-10-24 19:42 zhcgis 阅读(8315) 评论(0) 推荐(1)

导航