峯言凬语 O ever youthful O ever weeping~
本无意与众不同,怎奈何口味太重。
首页
平水韵
颜色表
ABOUT
文章分类
友情链接
您正在查看:Nonni 发布的文章

用户管理

useradd nonnichen
passwd nonnichen

指定命令解释程序

usermod -s /bin/bash nonnichen

指定目录

usermod -d /home/nonnichen nonnichen

验证

cat /etc/passwd

切换用户验证

su nonnichen

添加管理员

vi sudo
vi /etc/sudoers
nonnichen ALL=(ALL:ALL) ALL

在服务中开启Microsoft Exchange POP3和Microsoft Exchange IMAP4。

在EMS中设置POP3和IMAP4传入属性:
Set-PopSettings -ExternalConnectionSettings {mail.nonni.cn:995:SSL}
Set-ImapSettings -ExternalConnectionSettings {mail.nonni.cn:993:SSL}
验证:
Get-PopSettings | fl
Get-ImapSettings | fl

在EMS中设置SMYP传出属性
Get-ReceiveConnector “Client Frontend” | Set-ReceiveConnector -Fqdn mail.nonni.cn -AdvertiseClientSettings $true
验证:
Get-ReceiveConnector | fl

在OWA中登录开启pop3和IMAP。</pre>

2018-08-17 |Nonni

$ lsb_release -a
$ sudo apt-get update && sudo apt-get dist-upgrade
$ sudo reboot
$ sudo apt-get install update-manager-core
$ sudo do-release-upgrade
$ lsb_release -a

Note: if not lts version, need to change file /etc/update-manager/release-upgrades, set Prompt=lts

$ sudo vi /etc/update-manager/release-upgrades
$ sudo do-release-upgrade
$ lsb_release -a

apt-get install php7.0 libapache2-mod-php7.0

apt-get install mysql-server

apt-get install mysql-client

安装:
sudo apt-get update
sudo apt-get install apache2

验证:
apache2 -version

配置:
vi /etc/apache2/apache2.conf
ServerName nonni.cn
DirectoryIndex index.html index.htm index.php /_h5ai/public/index.php
Listen 192.168.0.18:80

vi /etc/apache2/sites-available/000-default.conf
DocumentRoot /var

sudo vi /etc/apache2/mods-available/dir.conf

DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm /_h5ai/server/php/index.php

sudo service apache2 restart