摘要: yum install -y httpd https://www.cnblogs.com/eczhou/p/5534043.html Apache 2.4.6 多域名多网站配置 在/etc/httpd/conf 下 编辑 vim httpd.conf 添加:ServerName 外网IP 并注释 # 阅读全文
posted @ 2021-03-04 10:56 一颗大白鲸 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 在shell命令行: 1、nm -D xxx.so /netcore/publish/* 2>/dev/null | grep "T addC" 查找相关目录下的包含addC函数的 文件 View Code 2、readelf -s xxx.so 3、objump -tT xxx.so linux之 阅读全文
posted @ 2021-02-26 15:26 一颗大白鲸 阅读(5118) 评论(0) 推荐(0) 编辑
摘要: 1.linux的软连接存放位置 cd /usr/bin 2.查看现有python的软连接指向的版本 ls -al *python* 3.删除旧的软连接 rm python 4.建立新的软连接 ln -s python3.6 python 5.查看软连接版本 python -V 全部操作都在root用 阅读全文
posted @ 2021-02-25 15:32 一颗大白鲸 阅读(3974) 评论(0) 推荐(0) 编辑
摘要: char * strc = new char[strlen(str.c_str())+1]; strcpy(strc, str.c_str())这样转是返回一个串 而不是指针,如果直接 char *p = const_cast<char*>(a.c_str());则返回的不正确。 string pa 阅读全文
posted @ 2021-02-23 13:58 一颗大白鲸 阅读(15065) 评论(0) 推荐(0) 编辑
摘要: netstat -ntpl netstat -nupl 当前目录文本内容grep -rn '' 本地查找 数据库检索 更新本地数据库updatedb locate test.file 指定目录查找find /var -name test.file当前目录find -name test.file ./ 阅读全文
posted @ 2021-02-19 10:05 一颗大白鲸 阅读(49) 评论(0) 推荐(0) 编辑
摘要: #DocumentRoot /var/www/html/m Alias /admin /var/www/html/admin #Alias /m /var/www/html/m 这个办法 的路径是有点问题的。所以多端口 再用ngnix #DocumentRoot /var/www/html/m Al 阅读全文
posted @ 2021-02-10 16:33 一颗大白鲸 阅读(285) 评论(0) 推荐(0) 编辑
摘要: 创建一个启动脚本命名为netcore.servic,放到/etc/systemd/system目录下,修改对应的app目录和 启动命令即可 Type=simple # app的目录 WorkingDirectory=/www/publish # 启动命令 ExecStart=/usr/bin/dot 阅读全文
posted @ 2021-02-10 10:02 一颗大白鲸 阅读(713) 评论(0) 推荐(0) 编辑
摘要: 建立相关用户和用户名 systemctl stop firewalld systemctl disable firewalld systemctl unmask firewalld.service systemctl stop iptables systemctl disable iptables 阅读全文
posted @ 2021-02-09 14:24 一颗大白鲸 阅读(577) 评论(0) 推荐(0) 编辑
摘要: 替换默认的 http://archive.ubuntu.com/ 为 mirrors.aliyun.com 2. 开启 root sudo passwd root 设置密码 vim /etc/ssh/sshd_config # $OpenBSD: sshd_config,v 1.101 2017/0 阅读全文
posted @ 2021-02-09 11:40 一颗大白鲸 阅读(137) 评论(0) 推荐(0) 编辑
摘要: aptitude与apt-get 源 # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb http://archive. 阅读全文
posted @ 2021-02-07 11:24 一颗大白鲸 阅读(396) 评论(0) 推荐(0) 编辑