-
ubuntu18.04 python卸载
1.卸载pythonsudo apt-get remove python一.切换版本2.查看系统的Python环境python -V3.查看系统Python的可用环境列表update-alternatives --list python#此处如果显示update-alternatives: error: no alternatives ...
-
ubuntu手动安装安全更新
使用 APT-GET 命令 或者 APT 命令 来安装 unattended-upgrades 包。sudo apt-get install unattended-upgrades或sudo apt install unattended-upgrades或sudo unattended-upgrade -d
-
ubuntu部署Flask+uwsgi+Nginx
1.python环境安装sudo apt-get install python-setuptoolssudo easy_install pip或者直接安装pipsudo apt-get install python-pip2.安装virtualenvsudo pip install virtualenv安装VirtualEnv 后只需要在项目目录内...
-
Ubuntu彻底清除history命令历史记录
完全删除操作:在Linux系统的终端中,通常会保存一些敏感的命令记录,使用history -c #清除历史命令记录rm -rf ~/.bash_history #删除 .bash_history 文件部分删除操作:1.vim ~/.bash_history 该文件即为历史记录存...
-
ubuntu18.04安装git
ubuntu安装gitsudo apt-get updatesudo apt-get install git查看版本验证安装配置Gitgit config --global user.name "你的用户名,例如gitxy的账号"git config --global user.email "你的邮箱,例如rst@gitxy.com中...
-
ubuntu18.04安装openssl
1.安装openssl sudo apt-get install openssl 2.开启SSL模块 a2enmod ssl systemctl restart apache23.启用SSL站点 a2ensite default-ssl4.加入监听端口 sudo vim /etc/apache2/ports.conf5.编辑Ap...
-
ubuntu18.04开启防火墙
1.安装防火墙 sudo apt install ufw ufw enable ufw default deny ufw allow ssh ufw status 2.查看服务是否启动 netstat -anp | grep 'pptpd'3.使pptpd服务自动启动 systemctl enable...
-
apache安全防护
1.使用 ModSecurity 模块保护你的 Apache sudo apt-get install libapache2-modsecurity #ModSecurity 自带了一个默认的设置,但如果你想扩展它,你可以使用 OWASP 规则集。 1.1重启 Apache: systemctl ...
-
Ubuntu下彻底卸载apache2
1. 删除apache sudo apt-get --purge remove apache-common sudo apt-get --purge remove apache2.找到没有删除掉的配置文件,一并删除 sudo find /etc -name "*apache*" |xargs rm -rf sudo rm -rf /var...
-
ubuntu下apache安装与配置
准备sudo apt update #更新软件源中的所有软件列表(必须)sudo apt upgrade # 更新软件(建议更新)sudo apt dist-upgrade # 更新系统版本(非必要时,不建议升级)安装Apache sudo apt install apache2 # ...
-
ubnutu18.04安装 Apache, MySQL, PHP7, phpMyAdmin
准备sudo apt update #更新软件源中的所有软件列表(必须)sudo apt upgrade # 更新软件(建议更新)sudo apt dist-upgrade # 更新系统版本(非必要时,不建议升级)安装Apache sudo apt install apache2 # ...
栏目索引
阅读排行榜
相关Tag